Skip to content

Commit

Permalink
Add unit test and fix IWYU
Browse files Browse the repository at this point in the history
  • Loading branch information
yujingwei committed Oct 18, 2023
1 parent 4871d55 commit 2094fc5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/base/test/redact_sensitive_string_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,13 @@

const std::string test_string = "pegasus";

// FLAGS_encrypt_data_at_rest up
TEST(pegasus_utils, redact_sensitive_string)
{
FLAGS_encrypt_data_at_rest = true;
auto result_string = pegasus::utils::redact_sensitive_string(test_string);
ASSERT_EQ(pegasus::utils::kRedactedString, result_string);
}

// FLAGS_encrypt_data_at_rest down
TEST(pegasus_utils, redact_sensitive_string_with_encrypt)
{
FLAGS_encrypt_data_at_rest = false;
Expand Down

0 comments on commit 2094fc5

Please sign in to comment.