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

Side by Side Diff: base/synchronization/waitable_event_watcher_unittest.cc

Issue 1446363003: Deleted OS_WIN and all Windows specific files from base. (Closed) Base URL: https://github.com/domokit/mojo.git@base_tests
Patch Set: Created 5 years, 1 month 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
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/synchronization/waitable_event_watcher.h" 5 #include "base/synchronization/waitable_event_watcher.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 RunTest_CancelAfterSet(testing_message_loops[i]); 154 RunTest_CancelAfterSet(testing_message_loops[i]);
155 } 155 }
156 } 156 }
157 157
158 TEST(WaitableEventWatcherTest, OutlivesMessageLoop) { 158 TEST(WaitableEventWatcherTest, OutlivesMessageLoop) {
159 for (int i = 0; i < kNumTestingMessageLoops; i++) { 159 for (int i = 0; i < kNumTestingMessageLoops; i++) {
160 RunTest_OutlivesMessageLoop(testing_message_loops[i]); 160 RunTest_OutlivesMessageLoop(testing_message_loops[i]);
161 } 161 }
162 } 162 }
163 163
164 #if defined(OS_WIN)
165 // Crashes sometimes on vista. http://crbug.com/62119
166 #define MAYBE_DeleteUnder DISABLED_DeleteUnder
167 #else
168 #define MAYBE_DeleteUnder DeleteUnder 164 #define MAYBE_DeleteUnder DeleteUnder
169 #endif
170 TEST(WaitableEventWatcherTest, MAYBE_DeleteUnder) { 165 TEST(WaitableEventWatcherTest, MAYBE_DeleteUnder) {
171 for (int i = 0; i < kNumTestingMessageLoops; i++) { 166 for (int i = 0; i < kNumTestingMessageLoops; i++) {
172 RunTest_DeleteUnder(testing_message_loops[i]); 167 RunTest_DeleteUnder(testing_message_loops[i]);
173 } 168 }
174 } 169 }
175 170
176 } // namespace base 171 } // namespace base
OLDNEW
« no previous file with comments | « base/synchronization/waitable_event_watcher.h ('k') | base/synchronization/waitable_event_watcher_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698