Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit db270dc8 authored by Pavlin Radoslavov's avatar Pavlin Radoslavov Committed by Andre Eisenbach
Browse files

Fix ParcelHelpersTest.ScanResult unit test

Fix a failing unit test that was broken by some
earlier cleanup work.

Bug: 26879229
Bug: 27152031
Change-Id: I244d078a23a69c82fbc7cb4468649ab933131977
parent 9edc6ae9
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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));