Index: device/bluetooth/test/mock_bluetooth_socket.h |
diff --git a/device/bluetooth/test/mock_bluetooth_socket.h b/device/bluetooth/test/mock_bluetooth_socket.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a2a287f5f62b1fe04bf9e72c20c9197636fa2757 |
--- /dev/null |
+++ b/device/bluetooth/test/mock_bluetooth_socket.h |
@@ -0,0 +1,24 @@ |
+// Copyright (c) 2012 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 DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_SOCKET_H_ |
+#define DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_SOCKET_H_ |
+ |
+#include "device/bluetooth/bluetooth_socket.h" |
+#include "testing/gmock/include/gmock/gmock.h" |
+ |
+namespace device { |
+ |
+class MockBluetoothSocket : public BluetoothSocket { |
+ public: |
+ MockBluetoothSocket(); |
+ MOCK_CONST_METHOD0(fd, int()); |
+ |
+ protected: |
+ virtual ~MockBluetoothSocket(); |
+}; |
+ |
+} // namespace device |
+ |
+#endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_SOCKET_H_ |