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

Unified Diff: components/safe_browsing_db/v4_update_protocol_manager_unittest.cc

Issue 2241863004: Enable support for Rice encoding (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@01_checksum_errors
Patch Set: Remove TODO. Update test to expect RICE as supported compression. Created 4 years, 4 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/safe_browsing_db/v4_update_protocol_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/safe_browsing_db/v4_update_protocol_manager_unittest.cc
diff --git a/components/safe_browsing_db/v4_update_protocol_manager_unittest.cc b/components/safe_browsing_db/v4_update_protocol_manager_unittest.cc
index fd5389da8e0596084eccabbd6ebeb5d23c03181f..a901a23ca16082cf9da68e6d0157c59036151609 100644
--- a/components/safe_browsing_db/v4_update_protocol_manager_unittest.cc
+++ b/components/safe_browsing_db/v4_update_protocol_manager_unittest.cc
@@ -308,7 +308,7 @@ TEST_F(V4UpdateProtocolManagerTest, TestBase64EncodingUsesUrlEncoding) {
std::string encoded_request_with_minus =
V4UpdateProtocolManager::GetBase64SerializedUpdateRequestProto(
store_state_map_minus);
- EXPECT_EQ("GhcIARACGgt6LVJ-M3J1VmlRSCICIAEoAQ==", encoded_request_with_minus);
+ EXPECT_EQ("GhkIARACGgt6LVJ-M3J1VmlRSCIEIAEgAigB", encoded_request_with_minus);
// NOTE(vakh): Same process for chosing this string. I am representing it
// in base64 encoded form because the actual state value contains non-ASCII
@@ -322,7 +322,7 @@ TEST_F(V4UpdateProtocolManagerTest, TestBase64EncodingUsesUrlEncoding) {
std::string encoded_request_with_underscore =
V4UpdateProtocolManager::GetBase64SerializedUpdateRequestProto(
store_state_map_underscore);
- EXPECT_EQ("GhUIARACGglVMV8hMF_iUEwiAiABKAE=",
+ EXPECT_EQ("GhcIARACGglVMV8hMF_iUEwiBCABIAIoAQ==",
encoded_request_with_underscore);
}
« no previous file with comments | « components/safe_browsing_db/v4_update_protocol_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698