summaryrefslogtreecommitdiffstats
path: root/chromium/chrome/browser/ui/webui/downloads/mock_downloads_page.cc
blob: 986778fc2c16df929a006bbd902e7c9fce591d87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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();
}