Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(250)

Side by Side Diff: Source/modules/bluetooth/testing/BluetoothMock.h

Issue 650613005: bluetooth: Initial WebBluetooth & WebBluetoothError. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Abandoned initial approach implementing BluetoothMock in Blink. Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef BluetoothMock_h
6 #define BluetoothMock_h
7
8 #include "platform/heap/Heap.h"
9 #include "platform/heap/Visitor.h"
10 #include "public/platform/WebBluetooth.h"
11 #include "public/platform/WebBluetoothError.h"
12
13 namespace blink {
14
15 class BluetoothMock final
16 : public GarbageCollectedFinalized<BluetoothMock>
17 , public WebBluetooth {
18 public:
19 BluetoothMock();
20
21 void bluetoothRequestDeviceWillReject(WebBluetoothError::ErrorType);
22
23 void trace(Visitor*) { }
24
25 // WebBluetooth implementation:
26 virtual void requestDevice(WebBluetoothRequestDeviceCallbacks*) override;
27
28 private:
29 bool m_bluetoothRequestDeviceWillReject;
30 WebBluetoothError::ErrorType m_bluetoothRequestDeviceRejectType;
31 };
32
33 } // namespace blink
34
35 #endif // BluetoothMock_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698