OSDN Git Service
(root)
/
android-x86
/
system-bt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1bccb9
)
Fix ParcelHelpersTest.ScanResult unit test
author
Pavlin Radoslavov
<pavlin@google.com>
Wed, 17 Feb 2016 18:20:12 +0000
(10:20 -0800)
committer
Pavlin 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
patch
|
blob
|
history
diff --git
a/service/test/parcel_helpers_unittest.cpp
b/service/test/parcel_helpers_unittest.cpp
index
a9c6852
..
d8ac12c
100644
(file)
--- a/
service/test/parcel_helpers_unittest.cpp
+++ b/
service/test/parcel_helpers_unittest.cpp
@@
-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(k
Empty
Address, kEmptyBytes, kTestRssi);
+ ScanResult result0(k
Test
Address, kEmptyBytes, kTestRssi);
ScanResult result1(kTestAddress, kTestBytes, kTestRssi);
EXPECT_TRUE(TestScanResult(result0));