OLD | NEW |
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/macros.h" | 9 #include "base/macros.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 RunTest_CancelAfterSet(testing_message_loops[i]); | 162 RunTest_CancelAfterSet(testing_message_loops[i]); |
163 } | 163 } |
164 } | 164 } |
165 | 165 |
166 TEST(WaitableEventWatcherTest, OutlivesMessageLoop) { | 166 TEST(WaitableEventWatcherTest, OutlivesMessageLoop) { |
167 for (int i = 0; i < kNumTestingMessageLoops; i++) { | 167 for (int i = 0; i < kNumTestingMessageLoops; i++) { |
168 RunTest_OutlivesMessageLoop(testing_message_loops[i]); | 168 RunTest_OutlivesMessageLoop(testing_message_loops[i]); |
169 } | 169 } |
170 } | 170 } |
171 | 171 |
172 #if defined(OS_WIN) | 172 TEST(WaitableEventWatcherTest, DeleteUnder) { |
173 // Crashes sometimes on vista. http://crbug.com/62119 | |
174 #define MAYBE_DeleteUnder DISABLED_DeleteUnder | |
175 #else | |
176 #define MAYBE_DeleteUnder DeleteUnder | |
177 #endif | |
178 TEST(WaitableEventWatcherTest, MAYBE_DeleteUnder) { | |
179 for (int i = 0; i < kNumTestingMessageLoops; i++) { | 173 for (int i = 0; i < kNumTestingMessageLoops; i++) { |
180 RunTest_DeleteUnder(testing_message_loops[i]); | 174 RunTest_DeleteUnder(testing_message_loops[i]); |
181 } | 175 } |
182 } | 176 } |
183 | 177 |
184 } // namespace base | 178 } // namespace base |
OLD | NEW |