[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
(215)

Side by Side Diff: media/filters/audio_renderer_impl_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
« no previous file with comments | « media/base/test_helpers.cc ('k') | media/filters/chunk_demuxer_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/callback_helpers.h" 6 #include "base/callback_helpers.h"
7 #include "base/gtest_prod_util.h" 7 #include "base/gtest_prod_util.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/stl_util.h" 9 #include "base/stl_util.h"
10 #include "media/base/data_buffer.h" 10 #include "media/base/data_buffer.h"
11 #include "media/base/gmock_callback_support.h" 11 #include "media/base/gmock_callback_support.h"
12 #include "media/base/mock_audio_renderer_sink.h" 12 #include "media/base/mock_audio_renderer_sink.h"
13 #include "media/base/mock_callback.h"
14 #include "media/base/mock_filters.h" 13 #include "media/base/mock_filters.h"
14 #include "media/base/test_helpers.h"
15 #include "media/filters/audio_renderer_impl.h" 15 #include "media/filters/audio_renderer_impl.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 17
18 using ::testing::_; 18 using ::testing::_;
19 using ::testing::AnyNumber; 19 using ::testing::AnyNumber;
20 using ::testing::Invoke; 20 using ::testing::Invoke;
21 using ::testing::Return; 21 using ::testing::Return;
22 using ::testing::NiceMock; 22 using ::testing::NiceMock;
23 using ::testing::StrictMock; 23 using ::testing::StrictMock;
24 24
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 EXPECT_TRUE(ConsumeBufferedData(bytes_buffered() / 2, NULL)); 469 EXPECT_TRUE(ConsumeBufferedData(bytes_buffered() / 2, NULL));
470 470
471 renderer_->Pause(NewExpectedClosure()); 471 renderer_->Pause(NewExpectedClosure());
472 472
473 AbortPendingRead(); 473 AbortPendingRead();
474 474
475 Preroll(base::TimeDelta::FromSeconds(1)); 475 Preroll(base::TimeDelta::FromSeconds(1));
476 } 476 }
477 477
478 } // namespace media 478 } // namespace media
OLDNEW
« no previous file with comments | « media/base/test_helpers.cc ('k') | media/filters/chunk_demuxer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698