chromium/content/browser/hid/hid_test_utils.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "content/browser/hid/hid_test_utils.h"
#include "third_party/blink/public/mojom/hid/hid.mojom.h"

#include <utility>

#include "base/functional/callback.h"

namespace content {

MockHidDelegate::MockHidDelegate() = default;

MockHidDelegate::~MockHidDelegate() = default;

std::unique_ptr<HidChooser> MockHidDelegate::RunChooser(
    RenderFrameHost* frame,
    std::vector<blink::mojom::HidDeviceFilterPtr> filters,
    std::vector<blink::mojom::HidDeviceFilterPtr> exclusion_filters,
    HidChooser::Callback callback) {}

void MockHidDelegate::AddObserver(BrowserContext* browser_context,
                                  Observer* observer) {}

void MockHidDelegate::RemoveObserver(BrowserContext* browser_context,
                                     Observer* observer) {}

void MockHidDelegate::OnDeviceAdded(
    const device::mojom::HidDeviceInfo& device) {}

void MockHidDelegate::OnDeviceRemoved(
    const device::mojom::HidDeviceInfo& device) {}

void MockHidDelegate::OnDeviceChanged(
    const device::mojom::HidDeviceInfo& device) {}

void MockHidDelegate::OnPermissionRevoked(const url::Origin& origin) {}

void MockHidDelegate::OnHidManagerConnectionError() {}

void MockHidDelegate::SetAssertBrowserContext(bool assert_browser_context) {}

HidTestContentBrowserClient::HidTestContentBrowserClient() = default;

HidTestContentBrowserClient::~HidTestContentBrowserClient() = default;

HidDelegate* HidTestContentBrowserClient::GetHidDelegate() {}

}  // namespace content