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

Side by Side Diff: media/audio/audio_output_controller_unittest.cc

Issue 5977010: Move CancellationFlag and WaitableEvent to the synchronization subdirectory.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 months 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/audio/audio_input_controller_unittest.cc ('k') | media/filters/ffmpeg_demuxer.h » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/environment.h" 5 #include "base/environment.h"
6 #include "base/basictypes.h" 6 #include "base/basictypes.h"
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/task.h" 8 #include "base/task.h"
9 #include "base/waitable_event.h" 9 #include "base/synchronization/waitable_event.h"
10 #include "media/audio/audio_output_controller.h" 10 #include "media/audio/audio_output_controller.h"
11 #include "testing/gmock/include/gmock/gmock.h" 11 #include "testing/gmock/include/gmock/gmock.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 13
14 using ::testing::_; 14 using ::testing::_;
15 using ::testing::AtLeast; 15 using ::testing::AtLeast;
16 using ::testing::Exactly; 16 using ::testing::Exactly;
17 using ::testing::InvokeWithoutArgs; 17 using ::testing::InvokeWithoutArgs;
18 using ::testing::NotNull; 18 using ::testing::NotNull;
19 using ::testing::Return; 19 using ::testing::Return;
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 controller->Close(NewRunnableFunction(&SignalClosedEvent, &closed_event_1)); 323 controller->Close(NewRunnableFunction(&SignalClosedEvent, &closed_event_1));
324 324
325 base::WaitableEvent closed_event_2(true, false); 325 base::WaitableEvent closed_event_2(true, false);
326 controller->Close(NewRunnableFunction(&SignalClosedEvent, &closed_event_2)); 326 controller->Close(NewRunnableFunction(&SignalClosedEvent, &closed_event_2));
327 327
328 closed_event_1.Wait(); 328 closed_event_1.Wait();
329 closed_event_2.Wait(); 329 closed_event_2.Wait();
330 } 330 }
331 331
332 } // namespace media 332 } // namespace media
OLDNEW
« no previous file with comments | « media/audio/audio_input_controller_unittest.cc ('k') | media/filters/ffmpeg_demuxer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698