| Index: components/arc/test/fake_bluetooth_instance.cc
 | 
| diff --git a/components/arc/test/fake_bluetooth_instance.cc b/components/arc/test/fake_bluetooth_instance.cc
 | 
| new file mode 100644
 | 
| index 0000000000000000000000000000000000000000..4db55a223ed18625066ad13dd533189b77a02127
 | 
| --- /dev/null
 | 
| +++ b/components/arc/test/fake_bluetooth_instance.cc
 | 
| @@ -0,0 +1,111 @@
 | 
| +// Copyright 2016 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 "components/arc/test/fake_bluetooth_instance.h"
 | 
| +
 | 
| +#include <utility>
 | 
| +
 | 
| +namespace arc {
 | 
| +
 | 
| +FakeBluetoothInstance::FakeBluetoothInstance() = default;
 | 
| +FakeBluetoothInstance::~FakeBluetoothInstance() = default;
 | 
| +
 | 
| +FakeBluetoothInstance::GattDBResult::GattDBResult(
 | 
| +    mojom::BluetoothAddressPtr&& remote_addr,
 | 
| +    mojo::Array<mojom::BluetoothGattDBElementPtr>&& db)
 | 
| +    : remote_addr_(std::move(remote_addr)), db_(std::move(db)) {}
 | 
| +
 | 
| +FakeBluetoothInstance::GattDBResult::~GattDBResult() {}
 | 
| +
 | 
| +FakeBluetoothInstance::LEDeviceFoundData::LEDeviceFoundData(
 | 
| +    mojom::BluetoothAddressPtr&& addr,
 | 
| +    int32_t rssi,
 | 
| +    mojo::Array<mojom::BluetoothAdvertisingDataPtr>&& adv_data)
 | 
| +    : addr_(std::move(addr)), rssi_(rssi), adv_data_(std::move(adv_data)) {}
 | 
| +
 | 
| +FakeBluetoothInstance::LEDeviceFoundData::~LEDeviceFoundData() {}
 | 
| +
 | 
| +void FakeBluetoothInstance::Init(mojom::BluetoothHostPtr host_ptr) {}
 | 
| +
 | 
| +void FakeBluetoothInstance::OnAdapterProperties(
 | 
| +    mojom::BluetoothStatus status,
 | 
| +    mojo::Array<mojom::BluetoothPropertyPtr> properties) {}
 | 
| +
 | 
| +void FakeBluetoothInstance::OnRemoteDeviceProperties(
 | 
| +    mojom::BluetoothStatus status,
 | 
| +    mojom::BluetoothAddressPtr address,
 | 
| +    mojo::Array<mojom::BluetoothPropertyPtr> properties) {}
 | 
| +
 | 
| +void FakeBluetoothInstance::OnDeviceFound(
 | 
| +    mojo::Array<mojom::BluetoothPropertyPtr> properties) {
 | 
| +  device_found_data_.push_back(std::move(properties));
 | 
| +}
 | 
| +
 | 
| +void FakeBluetoothInstance::OnDiscoveryStateChanged(
 | 
| +    mojom::BluetoothDiscoveryState state) {}
 | 
| +
 | 
| +void FakeBluetoothInstance::OnBondStateChanged(
 | 
| +    mojom::BluetoothStatus status,
 | 
| +    mojom::BluetoothAddressPtr remote_addr,
 | 
| +    mojom::BluetoothBondState state) {}
 | 
| +
 | 
| +void FakeBluetoothInstance::OnAclStateChanged(
 | 
| +    mojom::BluetoothStatus status,
 | 
| +    mojom::BluetoothAddressPtr remote_addr,
 | 
| +    mojom::BluetoothAclState state) {}
 | 
| +
 | 
| +void FakeBluetoothInstance::OnLEDeviceFound(
 | 
| +    mojom::BluetoothAddressPtr addr,
 | 
| +    int32_t rssi,
 | 
| +    mojo::Array<mojom::BluetoothAdvertisingDataPtr> adv_data) {
 | 
| +  le_device_found_data_.push_back(
 | 
| +      new LEDeviceFoundData(std::move(addr), rssi, std::move(adv_data)));
 | 
| +}
 | 
| +
 | 
| +void FakeBluetoothInstance::OnLEConnectionStateChange(
 | 
| +    mojom::BluetoothAddressPtr remote_addr,
 | 
| +    bool connected) {}
 | 
| +
 | 
| +void FakeBluetoothInstance::OnSearchComplete(
 | 
| +    mojom::BluetoothAddressPtr remote_addr,
 | 
| +    mojom::BluetoothGattStatus status) {}
 | 
| +
 | 
| +void FakeBluetoothInstance::OnGetGattDB(
 | 
| +    mojom::BluetoothAddressPtr remote_addr,
 | 
| +    mojo::Array<mojom::BluetoothGattDBElementPtr> db) {
 | 
| +  gatt_db_result_.push_back(
 | 
| +      new GattDBResult(std::move(remote_addr), std::move(db)));
 | 
| +}
 | 
| +
 | 
| +void FakeBluetoothInstance::OnServicesRemoved(
 | 
| +    mojom::BluetoothAddressPtr remote_addr,
 | 
| +    uint16_t start_handle,
 | 
| +    uint16_t end_handle) {}
 | 
| +
 | 
| +void FakeBluetoothInstance::OnServicesAdded(
 | 
| +    mojom::BluetoothAddressPtr remote_addr,
 | 
| +    mojo::Array<mojom::BluetoothGattDBElementPtr> db) {}
 | 
| +
 | 
| +void FakeBluetoothInstance::OnGattNotify(
 | 
| +    mojom::BluetoothAddressPtr remote_addr,
 | 
| +    mojom::BluetoothGattServiceIDPtr service_id,
 | 
| +    mojom::BluetoothGattIDPtr char_id,
 | 
| +    bool is_notify,
 | 
| +    mojo::Array<uint8_t> value) {}
 | 
| +
 | 
| +void FakeBluetoothInstance::RequestGattRead(
 | 
| +    mojom::BluetoothAddressPtr address,
 | 
| +    int32_t attribute_handle,
 | 
| +    int32_t offset,
 | 
| +    bool is_long,
 | 
| +    const RequestGattReadCallback& callback) {}
 | 
| +
 | 
| +void FakeBluetoothInstance::RequestGattWrite(
 | 
| +    mojom::BluetoothAddressPtr address,
 | 
| +    int32_t attribute_handle,
 | 
| +    int32_t offset,
 | 
| +    mojo::Array<uint8_t> value,
 | 
| +    const RequestGattWriteCallback& callback) {}
 | 
| +
 | 
| +}  // namespace arc
 | 
| 
 |