blob: 7b7b0092b0b0468bb00edf66796265bb4ce91fc9 [file] [log] [blame]
// Copyright 2019 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 "content/test/test_document_interface_broker.h"
namespace content {
TestDocumentInterfaceBroker::TestDocumentInterfaceBroker(
blink::mojom::DocumentInterfaceBroker* document_interface_broker,
blink::mojom::DocumentInterfaceBrokerRequest request)
: real_broker_(document_interface_broker),
binding_(this, std::move(request)) {}
TestDocumentInterfaceBroker::~TestDocumentInterfaceBroker() {}
blink::mojom::DocumentInterfaceBroker*
TestDocumentInterfaceBroker::GetForwardingInterface() {
return real_broker_;
}
void TestDocumentInterfaceBroker::Flush() {
binding_.FlushForTesting();
}
} // namespace content