[go: nahoru, domu]

Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Side by Side Diff: media/filters/chunk_demuxer_unittest.cc
Issue 11316293: Replace WaitableEvents and ConditionalVariables in VideoRendererBase tests with MessageLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix bustage Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/bind.h" 5 #include "base/bind.h"
6 #include "base/message_loop.h" 6 #include "base/message_loop.h"
7 #include "media/base/audio_decoder_config.h" 7 #include "media/base/audio_decoder_config.h"
8 #include "media/base/decoder_buffer.h" 8 #include "media/base/decoder_buffer.h"
9 #include "media/base/mock_callback.h"
10 #include "media/base/mock_demuxer_host.h" 9 #include "media/base/mock_demuxer_host.h"
11 #include "media/base/test_data_util.h" 10 #include "media/base/test_data_util.h"
11 #include "media/base/test_helpers.h"
12 #include "media/filters/chunk_demuxer.h" 12 #include "media/filters/chunk_demuxer.h"
13 #include "media/webm/cluster_builder.h" 13 #include "media/webm/cluster_builder.h"
14 #include "media/webm/webm_constants.h" 14 #include "media/webm/webm_constants.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 16
17 using ::testing::AnyNumber; 17 using ::testing::AnyNumber;
18 using ::testing::Exactly; 18 using ::testing::Exactly;
19 using ::testing::InSequence; 19 using ::testing::InSequence;
20 using ::testing::NotNull; 20 using ::testing::NotNull;
21 using ::testing::Return; 21 using ::testing::Return;
(...skipping 2406 matching lines...) Expand 10 before | Expand all | Expand 10 after
2428 2428
2429 scoped_ptr<Cluster> cluster_a(kDefaultFirstCluster()); 2429 scoped_ptr<Cluster> cluster_a(kDefaultFirstCluster());
2430 ASSERT_TRUE(AppendData(cluster_a->data(), cluster_a->size())); 2430 ASSERT_TRUE(AppendData(cluster_a->data(), cluster_a->size()));
2431 2431
2432 EXPECT_CALL(host_, SetDuration( 2432 EXPECT_CALL(host_, SetDuration(
2433 base::TimeDelta::FromMilliseconds(kDefaultFirstClusterEndTimestamp))); 2433 base::TimeDelta::FromMilliseconds(kDefaultFirstClusterEndTimestamp)));
2434 demuxer_->EndOfStream(PIPELINE_OK); 2434 demuxer_->EndOfStream(PIPELINE_OK);
2435 } 2435 }
2436 2436
2437 } // namespace media 2437 } // namespace media
OLDNEW
« no previous file with comments | « media/filters/audio_renderer_impl_unittest.cc ('k') | media/filters/decrypting_audio_decoder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698