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

Unified Diff: device/bluetooth/bluetooth_service_record_mac_unittest.mm

Issue 224893002: device/bluetooth: Rename device::bluetooth_utils::UUID to device::BluetoothUUID (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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
« no previous file with comments | « device/bluetooth/bluetooth_service_record_mac.mm ('k') | device/bluetooth/bluetooth_service_record_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_service_record_mac_unittest.mm
diff --git a/device/bluetooth/bluetooth_service_record_mac_unittest.mm b/device/bluetooth/bluetooth_service_record_mac_unittest.mm
index 22e4d1a3cfc07fb740a4e87eafb763affba78c1a..b64ea67b17b0d09a95f6ed74b281cdf2a9148f44 100644
--- a/device/bluetooth/bluetooth_service_record_mac_unittest.mm
+++ b/device/bluetooth/bluetooth_service_record_mac_unittest.mm
@@ -13,6 +13,7 @@
#include "base/basictypes.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/sys_string_conversions.h"
+#include "device/bluetooth/bluetooth_uuid.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
@@ -25,8 +26,9 @@ const BluetoothSDPServiceAttributeID kServiceNameAttributeId = 0x0100;
const uint8 kRfcommChannel = 0x0c;
const char kServiceName[] = "Headset Audio Gateway";
-const char kExpectedRfcommUuid[] = "01234567-89ab-cdef-0123-456789abcdef";
-const char kExpectedSerialUuid[] = "00001101-0000-1000-8000-00805f9b34fb";
+const device::BluetoothUUID kExpectedRfcommUuid(
+ "01234567-89ab-cdef-0123-456789abcdef");
+const device::BluetoothUUID kExpectedSerialUuid("1101");
const int kMaxUuidSize = 16;
@@ -146,7 +148,7 @@ TEST_F(BluetoothServiceRecordMacTest, UpperCaseUuid) {
TEST_F(BluetoothServiceRecordMacTest, InvalidUuid) {
BluetoothServiceRecordMac record(GetServiceRecord(nil, false));
- EXPECT_EQ("", record.uuid());
+ EXPECT_FALSE(record.uuid().IsValid());
}
} // namespace device
« no previous file with comments | « device/bluetooth/bluetooth_service_record_mac.mm ('k') | device/bluetooth/bluetooth_service_record_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698