| // Copyright 2020 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| #include "chromecast/browser/test/mock_cast_web_view.h" |
| |
| namespace chromecast { |
| |
| MockCastWebContents::MockCastWebContents() {} |
| |
| MockCastWebContents::~MockCastWebContents() = default; |
| |
| bool MockCastWebContents::TryBindReceiver(mojo::GenericPendingReceiver&) { |
| return false; |
| } |
| |
| MockCastWebView::MockCastWebView() { |
| mock_cast_web_contents_ = std::make_unique<MockCastWebContents>(); |
| } |
| |
| MockCastWebView::~MockCastWebView() = default; |
| |
| CastContentWindow* MockCastWebView::window() const { |
| return nullptr; |
| } |
| |
| content::WebContents* MockCastWebView::web_contents() const { |
| return nullptr; |
| } |
| |
| CastWebContents* MockCastWebView::cast_web_contents() { |
| return mock_cast_web_contents_.get(); |
| } |
| |
| base::TimeDelta MockCastWebView::shutdown_delay() const { |
| return base::TimeDelta(); |
| } |
| |
| } // namespace chromecast |