| Index: Source/modules/bluetooth/testing/BluetoothMock.h
|
| diff --git a/Source/modules/bluetooth/testing/BluetoothMock.h b/Source/modules/bluetooth/testing/BluetoothMock.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..880f45327cf4991d41775c5f5a801dde65ccb96e
|
| --- /dev/null
|
| +++ b/Source/modules/bluetooth/testing/BluetoothMock.h
|
| @@ -0,0 +1,35 @@
|
| +// Copyright 2014 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.
|
| +
|
| +#ifndef BluetoothMock_h
|
| +#define BluetoothMock_h
|
| +
|
| +#include "platform/heap/Heap.h"
|
| +#include "platform/heap/Visitor.h"
|
| +#include "public/platform/WebBluetooth.h"
|
| +#include "public/platform/WebBluetoothError.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class BluetoothMock final
|
| + : public GarbageCollectedFinalized<BluetoothMock>
|
| + , public WebBluetooth {
|
| +public:
|
| + BluetoothMock();
|
| +
|
| + void bluetoothRequestDeviceWillReject(WebBluetoothError::ErrorType);
|
| +
|
| + void trace(Visitor*) { }
|
| +
|
| + // WebBluetooth implementation:
|
| + virtual void requestDevice(WebBluetoothRequestDeviceCallbacks*) override;
|
| +
|
| +private:
|
| + bool m_bluetoothRequestDeviceWillReject;
|
| + WebBluetoothError::ErrorType m_bluetoothRequestDeviceRejectType;
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // BluetoothMock_h
|
|
|