Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(243)

Unified Diff: components/feedback/anonymizer_tool_unittest.cc

Issue 2842263005: Scrub peripheral serial numbers from logs (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/feedback/anonymizer_tool.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/feedback/anonymizer_tool_unittest.cc
diff --git a/components/feedback/anonymizer_tool_unittest.cc b/components/feedback/anonymizer_tool_unittest.cc
index 5c9aae99d974d09cf735bc1d55714da22de7065b..b6247636caa9e1a5b79f3488935a87151452621a 100644
--- a/components/feedback/anonymizer_tool_unittest.cc
+++ b/components/feedback/anonymizer_tool_unittest.cc
@@ -95,6 +95,13 @@ TEST_F(AnonymizerToolTest, AnonymizeCustomPatterns) {
"a\nb [SSID=1] [SSID=2] [SSID=foo\nbar] b",
AnonymizeCustomPatterns("a\nb [SSID=foo] [SSID=bar] [SSID=foo\nbar] b"));
+ EXPECT_EQ("SerialNumber: 1",
+ AnonymizeCustomPatterns("SerialNumber: 1217D7EF"));
+ EXPECT_EQ("serial number: 2",
+ AnonymizeCustomPatterns("serial number: 50C971FEE7F3x010900"));
+ EXPECT_EQ("SerialNumber: 3",
+ AnonymizeCustomPatterns("SerialNumber: EVT23-17BA01-004"));
+
EXPECT_EQ("<email: 1>",
AnonymizeCustomPatterns("foo@bar.com"));
EXPECT_EQ("Email: <email: 1>.",
« no previous file with comments | « components/feedback/anonymizer_tool.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698