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/devtools/device/adb/adb_device_provider.h" | 5 #include "chrome/browser/devtools/device/adb/adb_device_provider.h" |
6 #include "chrome/browser/devtools/device/adb/mock_adb_server.h" | 6 #include "chrome/browser/devtools/device/adb/mock_adb_server.h" |
7 #include "chrome/browser/devtools/device/devtools_android_bridge.h" | 7 #include "chrome/browser/devtools/device/devtools_android_bridge.h" |
8 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
9 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 9 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
10 #include "chrome/common/url_constants.h" | 10 #include "chrome/common/url_constants.h" |
11 #include "chrome/test/base/ui_test_utils.h" | 11 #include "chrome/test/base/ui_test_utils.h" |
12 #include "chrome/test/base/web_ui_browser_test.h" | 12 #include "chrome/test/base/web_ui_browser_test.h" |
13 #include "content/public/browser/navigation_details.h" | 13 #include "content/public/browser/navigation_details.h" |
14 #include "content/public/browser/web_contents.h" | 14 #include "content/public/browser/web_contents.h" |
15 #include "content/public/test/browser_test_utils.h" | 15 #include "content/public/test/browser_test_utils.h" |
16 | 16 |
17 using content::WebContents; | 17 using content::WebContents; |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 const char kSharedWorkerTestPage[] = | 21 const char kSharedWorkerTestPage[] = |
22 "files/workers/workers_ui_shared_worker.html"; | 22 "files/workers/workers_ui_shared_worker.html"; |
23 const char kSharedWorkerJs[] = | 23 const char kSharedWorkerJs[] = |
24 "files/workers/workers_ui_shared_worker.js"; | 24 "files/workers/workers_ui_shared_worker.js"; |
25 | 25 |
26 class InspectUITest : public WebUIBrowserTest { | 26 class InspectUITest : public WebUIBrowserTest { |
27 public: | 27 public: |
28 InspectUITest() {} | 28 InspectUITest() {} |
29 | 29 |
30 virtual void SetUpOnMainThread() override { | 30 void SetUpOnMainThread() override { |
31 WebUIBrowserTest::SetUpOnMainThread(); | 31 WebUIBrowserTest::SetUpOnMainThread(); |
32 AddLibrary(base::FilePath(FILE_PATH_LITERAL("inspect_ui_test.js"))); | 32 AddLibrary(base::FilePath(FILE_PATH_LITERAL("inspect_ui_test.js"))); |
33 } | 33 } |
34 | 34 |
35 private: | 35 private: |
36 DISALLOW_COPY_AND_ASSIGN(InspectUITest); | 36 DISALLOW_COPY_AND_ASSIGN(InspectUITest); |
37 }; | 37 }; |
38 | 38 |
39 IN_PROC_BROWSER_TEST_F(InspectUITest, InspectUIPage) { | 39 IN_PROC_BROWSER_TEST_F(InspectUITest, InspectUIPage) { |
40 ui_test_utils::NavigateToURL(browser(), GURL(chrome::kChromeUIInspectURL)); | 40 ui_test_utils::NavigateToURL(browser(), GURL(chrome::kChromeUIInspectURL)); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 StopMockAdbServer(); | 85 StopMockAdbServer(); |
86 } | 86 } |
87 | 87 |
88 IN_PROC_BROWSER_TEST_F(InspectUITest, ReloadCrash) { | 88 IN_PROC_BROWSER_TEST_F(InspectUITest, ReloadCrash) { |
89 ASSERT_TRUE(test_server()->Start()); | 89 ASSERT_TRUE(test_server()->Start()); |
90 ui_test_utils::NavigateToURL(browser(), GURL(chrome::kChromeUIInspectURL)); | 90 ui_test_utils::NavigateToURL(browser(), GURL(chrome::kChromeUIInspectURL)); |
91 ui_test_utils::NavigateToURL(browser(), GURL(chrome::kChromeUIInspectURL)); | 91 ui_test_utils::NavigateToURL(browser(), GURL(chrome::kChromeUIInspectURL)); |
92 } | 92 } |
93 | 93 |
94 } // namespace | 94 } // namespace |
OLD | NEW |