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

Unified Diff: chrome/browser/chromeos/bluetooth/test/mock_bluetooth_device.h

Issue 10899037: Refactoring bluetooth API code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added #include <string> into bluetooth_adapter_dbus.cc. Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/bluetooth/test/mock_bluetooth_device.h
diff --git a/chrome/browser/chromeos/bluetooth/test/mock_bluetooth_device.h b/chrome/browser/chromeos/bluetooth/test/mock_bluetooth_device.h
deleted file mode 100644
index b2b7b881abf2fb5fda1d639613b78aede780b982..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/bluetooth/test/mock_bluetooth_device.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// 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 CHROME_BROWSER_CHROMEOS_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_
-#define CHROME_BROWSER_CHROMEOS_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_
-
-#include <string>
-
-#include "base/string16.h"
-#include "chrome/browser/chromeos/bluetooth/bluetooth_device.h"
-#include "testing/gmock/include/gmock/gmock.h"
-
-namespace chromeos {
-
-class MockBluetoothDevice : public BluetoothDevice {
- public:
- MockBluetoothDevice(MockBluetoothAdapter* adapter,
- const std::string& name,
- const std::string& address,
- bool paired,
- bool bonded,
- bool connected);
- virtual ~MockBluetoothDevice();
-
- MOCK_CONST_METHOD0(address, const std::string&());
- MOCK_CONST_METHOD0(GetName, string16());
- MOCK_CONST_METHOD0(IsPaired, bool());
- MOCK_CONST_METHOD0(IsBonded, bool());
- MOCK_CONST_METHOD0(IsConnected, bool());
- MOCK_CONST_METHOD1(ProvidesServiceWithUUID, bool(const std::string&));
-
- MOCK_METHOD3(SetOutOfBandPairingData,
- void(const chromeos::BluetoothOutOfBandPairingData& data,
- const base::Closure& callback,
- const BluetoothDevice::ErrorCallback& error_callback));
- MOCK_METHOD2(ClearOutOfBandPairingData,
- void(const base::Closure& callback,
- const BluetoothDevice::ErrorCallback& error_callback));
-
- private:
- string16 name_;
- std::string address_;
-};
-
-} // namespace chromeos
-
-#endif // CHROME_BROWSER_CHROMEOS_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_

Powered by Google App Engine
This is Rietveld 408576698