blob: 8fb9fa986a1d8093d8f4f7036e6e5781f1e0f8c1 [file] [log] [blame]
// Copyright 2017 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/mock_widget_impl.h"
namespace content {
MockWidgetImpl::MockWidgetImpl(mojo::InterfaceRequest<mojom::Widget> request)
: binding_(this, std::move(request)) {}
MockWidgetImpl::~MockWidgetImpl() {}
void MockWidgetImpl::SetupWidgetInputHandler(
mojom::WidgetInputHandlerRequest request,
mojom::WidgetInputHandlerHostPtr host) {
input_handler_ = std::make_unique<MockWidgetInputHandler>(std::move(request),
std::move(host));
}
} // namespace content