OSDN Git Service

Fix ParcelHelpersTest.ScanResult unit test
authorPavlin Radoslavov <pavlin@google.com>
Wed, 17 Feb 2016 18:20:12 +0000 (10:20 -0800)
committerPavlin Radoslavov <pavlin@google.com>
Thu, 18 Feb 2016 04:05:59 +0000 (20:05 -0800)
Fix a failing unit test that was broken by some
earlier cleanup work.

Bug: 26879229
Bug: 27152031
Change-Id: I244d078a23a69c82fbc7cb4468649ab933131977

service/test/parcel_helpers_unittest.cpp

index a9c6852..d8ac12c 100644 (file)
@@ -194,14 +194,13 @@ TEST(ParcelHelpersTest, ScanFilter) {
 
 TEST(ParcelHelpersTest, ScanResult) {
   const char kTestAddress[] = "01:02:03:AB:CD:EF";
-  const char kEmptyAddress[] = "";
 
   const std::vector<uint8_t> kEmptyBytes;
   const std::vector<uint8_t> kTestBytes{ 0x01, 0x02, 0x03 };
 
   const int kTestRssi = 127;
 
-  ScanResult result0(kEmptyAddress, kEmptyBytes, kTestRssi);
+  ScanResult result0(kTestAddress, kEmptyBytes, kTestRssi);
   ScanResult result1(kTestAddress, kTestBytes, kTestRssi);
 
   EXPECT_TRUE(TestScanResult(result0));