| // Copyright 2018 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 "chrome/browser/ui/webui/downloads/mock_downloads_page.h" |
| |
| #include "chrome/browser/ui/webui/downloads/downloads.mojom.h" |
| #include "mojo/public/cpp/bindings/pending_remote.h" |
| #include "mojo/public/cpp/bindings/receiver.h" |
| |
| MockPage::MockPage() = default; |
| |
| MockPage::~MockPage() = default; |
| |
| mojo::PendingRemote<downloads::mojom::Page> MockPage::BindAndGetRemote() { |
| DCHECK(!receiver_.is_bound()); |
| return receiver_.BindNewPipeAndPassRemote(); |
| } |