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

Unified Diff: chrome/browser/chromeos/bluetooth/test/mock_bluetooth_adapter.cc

Issue 10899037: Refactoring bluetooth API code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing styles and tess. 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_adapter.cc
diff --git a/chrome/browser/chromeos/bluetooth/test/mock_bluetooth_adapter.cc b/chrome/browser/chromeos/bluetooth/test/mock_bluetooth_adapter.cc
index b3e6375e0dc7b17598730bcd12e492da6b758cc5..9219ab962a70949684b7d95b10892084cbd77770 100644
--- a/chrome/browser/chromeos/bluetooth/test/mock_bluetooth_adapter.cc
+++ b/chrome/browser/chromeos/bluetooth/test/mock_bluetooth_adapter.cc
@@ -11,8 +11,8 @@ MockBluetoothAdapter::Observer::~Observer() {}
MockBluetoothAdapter::MockBluetoothAdapter(const std::string& address,
const std::string& name) {
- address_ = address;
- name_ = name;
+ ON_CALL(*this, address()).WillByDefault(testing::ReturnRef(address));
+ ON_CALL(*this, name()).WillByDefault(testing::ReturnRef(name));
}
MockBluetoothAdapter::~MockBluetoothAdapter() {}

Powered by Google App Engine
This is Rietveld 408576698