OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/browser_watcher/window_hang_monitor_win.h" | 5 #include "components/browser_watcher/window_hang_monitor_win.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <vector> | 9 #include <vector> |
8 | 10 |
9 #include "base/base_switches.h" | 11 #include "base/base_switches.h" |
10 #include "base/bind.h" | 12 #include "base/bind.h" |
11 #include "base/bind_helpers.h" | 13 #include "base/bind_helpers.h" |
12 #include "base/callback.h" | 14 #include "base/callback.h" |
13 #include "base/callback_helpers.h" | 15 #include "base/callback_helpers.h" |
14 #include "base/command_line.h" | 16 #include "base/command_line.h" |
15 #include "base/location.h" | 17 #include "base/location.h" |
16 #include "base/macros.h" | 18 #include "base/macros.h" |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 monitor_thread().WaitForEvent()); | 378 monitor_thread().WaitForEvent()); |
377 | 379 |
378 // Unblock the worker thread. | 380 // Unblock the worker thread. |
379 hang.Signal(); | 381 hang.Signal(); |
380 | 382 |
381 ASSERT_FALSE(monitor_thread().TimedWaitForEvent( | 383 ASSERT_FALSE(monitor_thread().TimedWaitForEvent( |
382 base::TimeDelta::FromMilliseconds(150))); | 384 base::TimeDelta::FromMilliseconds(150))); |
383 } | 385 } |
384 | 386 |
385 } // namespace browser_watcher | 387 } // namespace browser_watcher |
OLD | NEW |