OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef CHROME_TEST_DATA_WEBUI_ASYNC_GEN_H_ | 4 #ifndef CHROME_TEST_DATA_WEBUI_ASYNC_GEN_H_ |
5 #define CHROME_TEST_DATA_WEBUI_ASYNC_GEN_H_ | 5 #define CHROME_TEST_DATA_WEBUI_ASYNC_GEN_H_ |
6 | 6 |
| 7 #include "base/macros.h" |
7 #include "chrome/test/base/web_ui_browser_test.h" | 8 #include "chrome/test/base/web_ui_browser_test.h" |
8 #include "content/public/browser/web_ui_message_handler.h" | 9 #include "content/public/browser/web_ui_message_handler.h" |
9 #include "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
10 | 11 |
11 namespace base { | 12 namespace base { |
12 class ListValue; | 13 class ListValue; |
13 } // namespace base | 14 } // namespace base |
14 | 15 |
15 // C++ support class for javascript-generated asynchronous tests. | 16 // C++ support class for javascript-generated asynchronous tests. |
16 class WebUIBrowserAsyncGenTest : public WebUIBrowserTest { | 17 class WebUIBrowserAsyncGenTest : public WebUIBrowserTest { |
(...skipping 27 matching lines...) Expand all Loading... |
44 | 45 |
45 void SetUpOnMainThread() override { | 46 void SetUpOnMainThread() override { |
46 WebUIBrowserTest::SetUpOnMainThread(); | 47 WebUIBrowserTest::SetUpOnMainThread(); |
47 EXPECT_CALL(message_handler_, HandleTearDown(::testing::_)); | 48 EXPECT_CALL(message_handler_, HandleTearDown(::testing::_)); |
48 } | 49 } |
49 | 50 |
50 DISALLOW_COPY_AND_ASSIGN(WebUIBrowserAsyncGenTest); | 51 DISALLOW_COPY_AND_ASSIGN(WebUIBrowserAsyncGenTest); |
51 }; | 52 }; |
52 | 53 |
53 #endif // CHROME_TEST_DATA_WEBUI_ASYNC_GEN_H_ | 54 #endif // CHROME_TEST_DATA_WEBUI_ASYNC_GEN_H_ |
OLD | NEW |