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

Unified Diff: components/proximity_auth/connection_unittest.cc

Issue 663693002: [Easy Unlock] Port the BluetoothThrottler class to native code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Windows compilation error, take 2 Created 5 years, 8 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: components/proximity_auth/connection_unittest.cc
diff --git a/components/proximity_auth/connection_unittest.cc b/components/proximity_auth/connection_unittest.cc
index 8fb15933760c5c6a85143097eb38c5caaba50177..3fb5f5012a8328e2cc6c9c9ed73d6dec315f2238 100644
--- a/components/proximity_auth/connection_unittest.cc
+++ b/components/proximity_auth/connection_unittest.cc
@@ -59,7 +59,7 @@ class MockConnectionObserver : public ConnectionObserver {
virtual ~MockConnectionObserver() {}
MOCK_METHOD3(OnConnectionStatusChanged,
- void(const Connection& connection,
+ void(Connection* connection,
Connection::Status old_status,
Connection::Status new_status));
MOCK_METHOD2(OnMessageReceived,
@@ -143,10 +143,9 @@ TEST(ProximityAuthConnectionTest, SetStatus_NotifiesObserversOfStatusChange) {
StrictMock<MockConnectionObserver> observer;
connection.AddObserver(&observer);
- EXPECT_CALL(
- observer,
- OnConnectionStatusChanged(
- Ref(connection), Connection::DISCONNECTED, Connection::CONNECTED));
+ EXPECT_CALL(observer,
+ OnConnectionStatusChanged(&connection, Connection::DISCONNECTED,
+ Connection::CONNECTED));
connection.SetStatus(Connection::CONNECTED);
}
« no previous file with comments | « components/proximity_auth/connection_observer.h ('k') | components/proximity_auth/throttled_bluetooth_connection_finder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698