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 "chrome/browser/ui/webui/test_chrome_web_ui_controller_factory.h" | 5 #include "chrome/browser/ui/webui/test_chrome_web_ui_controller_factory.h" |
6 #include "content/public/browser/web_ui_controller.h" | 6 #include "content/public/browser/web_ui_controller.h" |
7 #include "chrome/test/base/in_process_browser_test.h" | 7 #include "chrome/test/base/in_process_browser_test.h" |
8 #include "chrome/test/base/ui_test_utils.h" | 8 #include "chrome/test/base/ui_test_utils.h" |
9 #include "googleurl/src/gurl.h" | 9 #include "googleurl/src/gurl.h" |
10 #include "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 IN_PROC_BROWSER_TEST_F(TestChromeWebUIControllerFactoryTest, | 64 IN_PROC_BROWSER_TEST_F(TestChromeWebUIControllerFactoryTest, |
65 TestWebUIProvider) { | 65 TestWebUIProvider) { |
66 const GURL kChromeTestChromeWebUIControllerFactoryURL( | 66 const GURL kChromeTestChromeWebUIControllerFactoryURL( |
67 kChromeTestChromeWebUIControllerFactory); | 67 kChromeTestChromeWebUIControllerFactory); |
68 EXPECT_CALL(mock_provider_, | 68 EXPECT_CALL(mock_provider_, |
69 NewWebUI(_, Eq(kChromeTestChromeWebUIControllerFactoryURL))) | 69 NewWebUI(_, Eq(kChromeTestChromeWebUIControllerFactoryURL))) |
70 .WillOnce(ReturnNewWebUI()); | 70 .WillOnce(ReturnNewWebUI()); |
71 ui_test_utils::NavigateToURL(browser(), | 71 ui_test_utils::NavigateToURL(browser(), |
72 kChromeTestChromeWebUIControllerFactoryURL); | 72 kChromeTestChromeWebUIControllerFactoryURL); |
73 } | 73 } |
OLD | NEW |