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

Unified Diff: trunk/src/chrome/browser/extensions/api/bluetooth/bluetooth_apitest.cc

Issue 224763003: Revert 261566 "device/bluetooth: Rename device::bluetooth_utils:..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 9 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: trunk/src/chrome/browser/extensions/api/bluetooth/bluetooth_apitest.cc
===================================================================
--- trunk/src/chrome/browser/extensions/api/bluetooth/bluetooth_apitest.cc (revision 261569)
+++ trunk/src/chrome/browser/extensions/api/bluetooth/bluetooth_apitest.cc (working copy)
@@ -16,7 +16,6 @@
#include "chrome/test/base/ui_test_utils.h"
#include "device/bluetooth/bluetooth_adapter.h"
#include "device/bluetooth/bluetooth_out_of_band_pairing_data.h"
-#include "device/bluetooth/bluetooth_uuid.h"
#include "device/bluetooth/test/mock_bluetooth_adapter.h"
#include "device/bluetooth/test/mock_bluetooth_device.h"
#include "device/bluetooth/test/mock_bluetooth_discovery_session.h"
@@ -29,7 +28,6 @@
using device::BluetoothDiscoverySession;
using device::BluetoothOutOfBandPairingData;
using device::BluetoothProfile;
-using device::BluetoothUUID;
using device::MockBluetoothAdapter;
using device::MockBluetoothDevice;
using device::MockBluetoothDiscoverySession;
@@ -562,15 +560,13 @@
scoped_refptr<device::MockBluetoothSocket> socket =
new device::MockBluetoothSocket();
- event_router()->AddProfile(
- BluetoothUUID("1234"),
- extension->id(), profile1_.get());
+ event_router()->AddProfile("1234", extension->id(), profile1_.get());
event_router()->DispatchConnectionEvent(
- extension->id(), BluetoothUUID("1234"), device1_.get(), socket);
+ extension->id(), "1234", device1_.get(), socket);
listener.Reply("go");
EXPECT_TRUE(catcher.GetNextResult()) << catcher.message();
- event_router()->RemoveProfile(BluetoothUUID("1234"));
+ event_router()->RemoveProfile("1234");
}
IN_PROC_BROWSER_TEST_F(BluetoothApiTest, GetDevices) {
@@ -644,8 +640,8 @@
.WillRepeatedly(testing::Return(0x0400));
BluetoothDevice::UUIDList uuids;
- uuids.push_back(BluetoothUUID("1105"));
- uuids.push_back(BluetoothUUID("1106"));
+ uuids.push_back("00001105-0000-1000-8000-00805f9b34fb");
+ uuids.push_back("00001106-0000-1000-8000-00805f9b34fb");
EXPECT_CALL(*device1_.get(), GetUUIDs())
.WillOnce(testing::Return(uuids));

Powered by Google App Engine
This is Rietveld 408576698