| 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 "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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |