chromium/device/fido/hid/fido_hid_discovery_unittest.cc

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

#include "device/fido/hid/fido_hid_discovery.h"

#include <algorithm>
#include <string>
#include <utility>
#include <vector>

#include "base/test/gmock_callback_support.h"
#include "base/test/task_environment.h"
#include "device/fido/fido_authenticator.h"
#include "device/fido/hid/fake_hid_impl_for_testing.h"
#include "device/fido/hid/fido_hid_device.h"
#include "device/fido/mock_fido_discovery_observer.h"
#include "services/device/public/mojom/hid.mojom.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace device {

RunClosure;
ElementsAre;

namespace {

device::mojom::HidDeviceInfoPtr MakeOtherDevice(std::string guid) {}

device::mojom::HidDeviceInfoPtr MakeDeviceWithOneCollection(
    const std::string& guid,
    uint16_t usage_page) {}

device::mojom::HidDeviceInfoPtr MakeDeviceWithTwoCollections(
    const std::string& guid,
    uint16_t usage_page1,
    uint16_t usage_page2) {}

MATCHER_P(IdMatches, id, "") {}

}  // namespace

class FidoHidDiscoveryTest : public ::testing::Test {};

TEST_F(FidoHidDiscoveryTest, TestAddRemoveDevice) {}

TEST_F(FidoHidDiscoveryTest, AlreadyConnectedNonFidoDeviceBecomesFido) {}

TEST_F(FidoHidDiscoveryTest, NewlyAddedNonFidoDeviceBecomesFido) {}

TEST_F(FidoHidDiscoveryTest, NewlyAddedFidoDeviceChanged) {}

}  // namespace device