Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Side by Side Diff: chrome/browser/ui/webui/inspect_ui_browsertest.cc

Issue 671653002: Standardize usage of virtual/override/final in chrome/browser/ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698