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

Side by Side Diff: chrome/browser/errorpage_browsertest.cc

Issue 684613002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 } 286 }
287 287
288 class ErrorPageTest : public InProcessBrowserTest { 288 class ErrorPageTest : public InProcessBrowserTest {
289 public: 289 public:
290 enum HistoryNavigationDirection { 290 enum HistoryNavigationDirection {
291 HISTORY_NAVIGATE_BACK, 291 HISTORY_NAVIGATE_BACK,
292 HISTORY_NAVIGATE_FORWARD, 292 HISTORY_NAVIGATE_FORWARD,
293 }; 293 };
294 294
295 ErrorPageTest() : link_doctor_interceptor_(NULL) {} 295 ErrorPageTest() : link_doctor_interceptor_(NULL) {}
296 virtual ~ErrorPageTest() {} 296 ~ErrorPageTest() override {}
297 297
298 // Navigates the active tab to a mock url created for the file at |file_path|. 298 // Navigates the active tab to a mock url created for the file at |file_path|.
299 // Needed for StaleCacheStatus and StaleCacheStatusFailedCorrections tests. 299 // Needed for StaleCacheStatus and StaleCacheStatusFailedCorrections tests.
300 void SetUpCommandLine(CommandLine* command_line) override { 300 void SetUpCommandLine(CommandLine* command_line) override {
301 command_line->AppendSwitch(switches::kEnableOfflineLoadStaleCache); 301 command_line->AppendSwitch(switches::kEnableOfflineLoadStaleCache);
302 } 302 }
303 303
304 // Navigates the active tab to a mock url created for the file at |file_path|. 304 // Navigates the active tab to a mock url created for the file at |file_path|.
305 void NavigateToFileURL(const base::FilePath::StringType& file_path) { 305 void NavigateToFileURL(const base::FilePath::StringType& file_path) {
306 ui_test_utils::NavigateToURL( 306 ui_test_utils::NavigateToURL(
(...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after
1098 browser(), 1098 browser(),
1099 URLRequestFailedJob::GetMockHttpUrlForHostname(net::ERR_UNSAFE_PORT, 1099 URLRequestFailedJob::GetMockHttpUrlForHostname(net::ERR_UNSAFE_PORT,
1100 kHostname), 1100 kHostname),
1101 1); 1101 1);
1102 1102
1103 ToggleHelpBox(browser()); 1103 ToggleHelpBox(browser());
1104 EXPECT_TRUE(IsDisplayingText(browser(), kHostnameJSUnicode)); 1104 EXPECT_TRUE(IsDisplayingText(browser(), kHostnameJSUnicode));
1105 } 1105 }
1106 1106
1107 } // namespace 1107 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698