blob: 7d711d41416c7c68321331e6e0698718f544ec7a [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 "third_party/blink/renderer/core/testing/test_document_interface_broker.h"
#include <utility>
namespace blink {
TestDocumentInterfaceBroker::TestDocumentInterfaceBroker(
mojom::blink::DocumentInterfaceBroker* document_interface_broker,
mojom::blink::DocumentInterfaceBrokerRequest request)
: real_broker_(document_interface_broker),
binding_(this, std::move(request)) {}
TestDocumentInterfaceBroker::~TestDocumentInterfaceBroker() {}
mojom::blink::DocumentInterfaceBroker*
TestDocumentInterfaceBroker::GetForwardingInterface() {
return real_broker_;
}
void TestDocumentInterfaceBroker::Flush() {
binding_.FlushForTesting();
}
} // namespace blink