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

Side by Side Diff: content/browser/web_contents/web_contents_impl_unittest.cc

Issue 678973004: 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/logging.h" 5 #include "base/logging.h"
6 #include "base/strings/utf_string_conversions.h" 6 #include "base/strings/utf_string_conversions.h"
7 #include "content/browser/frame_host/cross_site_transferring_request.h" 7 #include "content/browser/frame_host/cross_site_transferring_request.h"
8 #include "content/browser/frame_host/interstitial_page_impl.h" 8 #include "content/browser/frame_host/interstitial_page_impl.h"
9 #include "content/browser/frame_host/navigation_entry_impl.h" 9 #include "content/browser/frame_host/navigation_entry_impl.h"
10 #include "content/browser/media/audio_stream_monitor.h" 10 #include "content/browser/media/audio_stream_monitor.h"
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 void set_assign_site_for_url(bool assign) { 245 void set_assign_site_for_url(bool assign) {
246 assign_site_for_url_ = assign; 246 assign_site_for_url_ = assign;
247 } 247 }
248 248
249 private: 249 private:
250 bool assign_site_for_url_; 250 bool assign_site_for_url_;
251 }; 251 };
252 252
253 class WebContentsImplTest : public RenderViewHostImplTestHarness { 253 class WebContentsImplTest : public RenderViewHostImplTestHarness {
254 public: 254 public:
255 virtual void SetUp() { 255 void SetUp() override {
256 RenderViewHostImplTestHarness::SetUp(); 256 RenderViewHostImplTestHarness::SetUp();
257 WebUIControllerFactory::RegisterFactory(&factory_); 257 WebUIControllerFactory::RegisterFactory(&factory_);
258 } 258 }
259 259
260 virtual void TearDown() { 260 void TearDown() override {
261 WebUIControllerFactory::UnregisterFactoryForTesting(&factory_); 261 WebUIControllerFactory::UnregisterFactoryForTesting(&factory_);
262 RenderViewHostImplTestHarness::TearDown(); 262 RenderViewHostImplTestHarness::TearDown();
263 } 263 }
264 264
265 private: 265 private:
266 WebContentsImplTestWebUIControllerFactory factory_; 266 WebContentsImplTestWebUIControllerFactory factory_;
267 }; 267 };
268 268
269 class TestWebContentsObserver : public WebContentsObserver { 269 class TestWebContentsObserver : public WebContentsObserver {
270 public: 270 public:
(...skipping 2517 matching lines...) Expand 10 before | Expand all | Expand 10 after
2788 2788
2789 // Destroy the remote player. No power save blockers should remain. 2789 // Destroy the remote player. No power save blockers should remain.
2790 rfh->OnMessageReceived( 2790 rfh->OnMessageReceived(
2791 FrameHostMsg_MediaPausedNotification(0, kPlayerRemoteId)); 2791 FrameHostMsg_MediaPausedNotification(0, kPlayerRemoteId));
2792 EXPECT_FALSE(contents()->has_video_power_save_blocker_for_testing()); 2792 EXPECT_FALSE(contents()->has_video_power_save_blocker_for_testing());
2793 EXPECT_FALSE(contents()->has_audio_power_save_blocker_for_testing()); 2793 EXPECT_FALSE(contents()->has_audio_power_save_blocker_for_testing());
2794 } 2794 }
2795 #endif 2795 #endif
2796 2796
2797 } // namespace content 2797 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/touch_editable_impl_aura.h ('k') | content/browser/web_contents/web_contents_view_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698