Skip to content

Commit

Permalink
code review feedback and some refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnywu committed Aug 21, 2024
1 parent c77b00f commit e11c131
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions test/encryption_tests_v4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,6 @@ TEST(EncryptionTestsV4, CanDecryptV4TokenEncodedAsBase64)
advertisingToken = GenerateUid2TokenV4AndValidate(EXAMPLE_UID, MASTER_KEY, SITE_ID, SITE_KEY, EncryptTokenParams());
} while (!std::any_of(advertisingToken.begin(), advertisingToken.end(), [](char c) { return c == '-' || c == '_'; }));

const bool isBase64UrlEncoding = std::any_of(advertisingToken.begin(), advertisingToken.end(), [](char c) { return c == '-' || c == '_'; });
EXPECT_TRUE(isBase64UrlEncoding);

std::vector<std::uint8_t> adTokenBytes;
uid2::UID2Base64UrlCoder::Decode(advertisingToken, adTokenBytes);

Expand Down

0 comments on commit e11c131

Please sign in to comment.