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

Side by Side Diff: content/browser/frame_host/navigation_controller_impl_unittest.cc

Issue 678073006: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bogus formatting 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/bind.h" 6 #include "base/bind.h"
7 #include "base/files/file_util.h" 7 #include "base/files/file_util.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 178
179 // NavigationControllerTest ---------------------------------------------------- 179 // NavigationControllerTest ----------------------------------------------------
180 180
181 class NavigationControllerTest 181 class NavigationControllerTest
182 : public RenderViewHostImplTestHarness, 182 : public RenderViewHostImplTestHarness,
183 public WebContentsObserver { 183 public WebContentsObserver {
184 public: 184 public:
185 NavigationControllerTest() : navigation_entry_committed_counter_(0) { 185 NavigationControllerTest() : navigation_entry_committed_counter_(0) {
186 } 186 }
187 187
188 virtual void SetUp() override { 188 void SetUp() override {
189 RenderViewHostImplTestHarness::SetUp(); 189 RenderViewHostImplTestHarness::SetUp();
190 WebContents* web_contents = RenderViewHostImplTestHarness::web_contents(); 190 WebContents* web_contents = RenderViewHostImplTestHarness::web_contents();
191 ASSERT_TRUE(web_contents); // The WebContents should be created by now. 191 ASSERT_TRUE(web_contents); // The WebContents should be created by now.
192 WebContentsObserver::Observe(web_contents); 192 WebContentsObserver::Observe(web_contents);
193 } 193 }
194 194
195 // WebContentsObserver: 195 // WebContentsObserver:
196 void DidStartNavigationToPendingEntry( 196 void DidStartNavigationToPendingEntry(
197 const GURL& url, 197 const GURL& url,
198 NavigationController::ReloadType reload_type) override { 198 NavigationController::ReloadType reload_type) override {
(...skipping 4152 matching lines...) Expand 10 before | Expand all | Expand 10 after
4351 params.post_id = -1; 4351 params.post_id = -1;
4352 contents()->GetMainFrame()->SendNavigateWithParams(&params); 4352 contents()->GetMainFrame()->SendNavigateWithParams(&params);
4353 4353
4354 // Now reload. replaceState overrides the POST, so we should not show a 4354 // Now reload. replaceState overrides the POST, so we should not show a
4355 // repost warning dialog. 4355 // repost warning dialog.
4356 controller_impl().Reload(true); 4356 controller_impl().Reload(true);
4357 EXPECT_EQ(0, delegate->repost_form_warning_count()); 4357 EXPECT_EQ(0, delegate->repost_form_warning_count());
4358 } 4358 }
4359 4359
4360 } // namespace content 4360 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698