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

Side by Side Diff: base/synchronization/waitable_event_watcher_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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/message_loop.h" 5 #include "base/message_loop.h"
6 #include "base/synchronization/waitable_event.h"
7 #include "base/synchronization/waitable_event_watcher.h"
6 #include "base/threading/platform_thread.h" 8 #include "base/threading/platform_thread.h"
7 #include "base/waitable_event.h"
8 #include "base/waitable_event_watcher.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
11 using base::WaitableEvent; 11 namespace base {
12 using base::WaitableEventWatcher;
13 12
14 namespace { 13 namespace {
15 14
16 class QuitDelegate : public WaitableEventWatcher::Delegate { 15 class QuitDelegate : public WaitableEventWatcher::Delegate {
17 public: 16 public:
18 virtual void OnWaitableEventSignaled(WaitableEvent* event) { 17 virtual void OnWaitableEventSignaled(WaitableEvent* event) {
19 MessageLoop::current()->Quit(); 18 MessageLoop::current()->Quit();
20 } 19 }
21 }; 20 };
22 21
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 // Crashes sometimes on vista. http://crbug.com/62119 154 // Crashes sometimes on vista. http://crbug.com/62119
156 #define MAYBE_DeleteUnder DISABLED_DeleteUnder 155 #define MAYBE_DeleteUnder DISABLED_DeleteUnder
157 #else 156 #else
158 #define MAYBE_DeleteUnder DeleteUnder 157 #define MAYBE_DeleteUnder DeleteUnder
159 #endif 158 #endif
160 TEST(WaitableEventWatcherTest, MAYBE_DeleteUnder) { 159 TEST(WaitableEventWatcherTest, MAYBE_DeleteUnder) {
161 RunTest_DeleteUnder(MessageLoop::TYPE_DEFAULT); 160 RunTest_DeleteUnder(MessageLoop::TYPE_DEFAULT);
162 RunTest_DeleteUnder(MessageLoop::TYPE_IO); 161 RunTest_DeleteUnder(MessageLoop::TYPE_IO);
163 RunTest_DeleteUnder(MessageLoop::TYPE_UI); 162 RunTest_DeleteUnder(MessageLoop::TYPE_UI);
164 } 163 }
164
165 } // namespace base
OLDNEW
« no previous file with comments | « base/synchronization/waitable_event_watcher_posix.cc ('k') | base/synchronization/waitable_event_watcher_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698