Commit ccdcbd7b authored by Lily Chen's avatar Lily Chen Committed by Commit Bot

Fix test for NetLog logging of excluded cookies

Bug: 1005217
Change-Id: Ia30a45781b719dd53fee3736982b63114ee191dd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1835163
Auto-Submit: Lily Chen <chlily@chromium.org>
Reviewed-by: default avatarEric Roman <eroman@chromium.org>
Commit-Queue: Lily Chen <chlily@chromium.org>
Cr-Commit-Position: refs/heads/master@{#702161}
parent f79de532
...@@ -6993,12 +6993,8 @@ TEST_F(URLRequestTest, ReportCookieActivity) { ...@@ -6993,12 +6993,8 @@ TEST_F(URLRequestTest, ReportCookieActivity) {
auto entries = auto entries =
net_log.GetEntriesWithType(NetLogEventType::COOKIE_INCLUSION_STATUS); net_log.GetEntriesWithType(NetLogEventType::COOKIE_INCLUSION_STATUS);
EXPECT_EQ(2u, entries.size()); EXPECT_EQ(2u, entries.size());
EXPECT_THAT(GetStringValueFromParams(entries[0], "exclusion_reason"), EXPECT_EQ("EXCLUDE_NOT_ON_PATH, EXCLUDE_USER_PREFERENCES, DO_NOT_WARN",
::testing::HasSubstr("EXCLUDE_NOT_ON_PATH")); GetStringValueFromParams(entries[0], "exclusion_reason"));
EXPECT_THAT(GetStringValueFromParams(entries[0], "exclusion_reason"),
::testing::HasSubstr("EXCLUDE_USER_PREFERENCES"));
EXPECT_THAT(GetStringValueFromParams(entries[0], "exclusion_reason"),
::testing::HasSubstr("DO_NOT_WARN"));
EXPECT_EQ("EXCLUDE_USER_PREFERENCES, DO_NOT_WARN", EXPECT_EQ("EXCLUDE_USER_PREFERENCES, DO_NOT_WARN",
GetStringValueFromParams(entries[1], "exclusion_reason")); GetStringValueFromParams(entries[1], "exclusion_reason"));
net_log.Clear(); net_log.Clear();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment