| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef CHROME_TEST_REMOTING_WAITER_H_ | 5 #ifndef CHROME_TEST_REMOTING_WAITER_H_ |
| 6 #define CHROME_TEST_REMOTING_WAITER_H_ | 6 #define CHROME_TEST_REMOTING_WAITER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" |
| 8 #include "base/timer/timer.h" | 9 #include "base/timer/timer.h" |
| 9 | 10 |
| 10 namespace content { | 11 namespace content { |
| 11 class MessageLoopRunner; | 12 class MessageLoopRunner; |
| 12 } | 13 } |
| 13 | 14 |
| 14 namespace remoting { | 15 namespace remoting { |
| 15 | 16 |
| 16 // Block the execution of the test code for the specified number of | 17 // Block the execution of the test code for the specified number of |
| 17 // milliseconds while keeping the message loop running. The browser instance | 18 // milliseconds while keeping the message loop running. The browser instance |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 Predicate callback_; | 66 Predicate callback_; |
| 66 base::RepeatingTimer condition_timer_; | 67 base::RepeatingTimer condition_timer_; |
| 67 bool success_; | 68 bool success_; |
| 68 | 69 |
| 69 DISALLOW_COPY_AND_ASSIGN(ConditionalTimeoutWaiter); | 70 DISALLOW_COPY_AND_ASSIGN(ConditionalTimeoutWaiter); |
| 70 }; | 71 }; |
| 71 | 72 |
| 72 } // namespace remoting | 73 } // namespace remoting |
| 73 | 74 |
| 74 #endif // CHROME_TEST_REMOTING_WAITER_H_ | 75 #endif // CHROME_TEST_REMOTING_WAITER_H_ |
| OLD | NEW |