| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_REMOTE_TEST_HELPER_H_ | 5 #ifndef CHROME_TEST_REMOTING_REMOTE_TEST_HELPER_H_ |
| 6 #define CHROME_TEST_REMOTING_REMOTE_TEST_HELPER_H_ | 6 #define CHROME_TEST_REMOTING_REMOTE_TEST_HELPER_H_ |
| 7 | 7 |
| 8 #include "base/debug/stack_trace.h" | 8 #include "base/debug/stack_trace.h" |
| 9 #include "base/macros.h" |
| 9 #include "base/timer/timer.h" | 10 #include "base/timer/timer.h" |
| 10 #include "content/public/test/browser_test_utils.h" | 11 #include "content/public/test/browser_test_utils.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 12 | 13 |
| 13 namespace { | 14 namespace { |
| 14 | 15 |
| 15 // ASSERT_TRUE can only be used in void returning functions. This version | 16 // ASSERT_TRUE can only be used in void returning functions. This version |
| 16 // should be used in non-void-returning functions. | 17 // should be used in non-void-returning functions. |
| 17 inline void _ASSERT_TRUE(bool condition) { | 18 inline void _ASSERT_TRUE(bool condition) { |
| 18 if (!condition) { | 19 if (!condition) { |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 content::WebContents* web_content_; | 87 content::WebContents* web_content_; |
| 87 | 88 |
| 88 // Check for a valid last event | 89 // Check for a valid last event |
| 89 bool IsValidEvent(); | 90 bool IsValidEvent(); |
| 90 DISALLOW_COPY_AND_ASSIGN(RemoteTestHelper); | 91 DISALLOW_COPY_AND_ASSIGN(RemoteTestHelper); |
| 91 }; | 92 }; |
| 92 | 93 |
| 93 } // namespace remoting | 94 } // namespace remoting |
| 94 | 95 |
| 95 #endif // CHROME_TEST_REMOTING_REMOTE_TEST_HELPER_H_ | 96 #endif // CHROME_TEST_REMOTING_REMOTE_TEST_HELPER_H_ |
| OLD | NEW |