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

Unified Diff: chrome/browser/component_updater/test/component_updater_service_unittest.cc

Issue 165393009: Added "lang" attribute to the component updater update requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 | « chrome/browser/component_updater/component_updater_utils.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/component_updater/test/component_updater_service_unittest.cc
diff --git a/chrome/browser/component_updater/test/component_updater_service_unittest.cc b/chrome/browser/component_updater/test/component_updater_service_unittest.cc
index 614f1b00fbd925588613d3aac91648a21d337692..a08ad224493c626f768edfabb3797acf3bd14685 100644
--- a/chrome/browser/component_updater/test/component_updater_service_unittest.cc
+++ b/chrome/browser/component_updater/test/component_updater_service_unittest.cc
@@ -490,6 +490,13 @@ TEST_F(ComponentUpdaterTest, InstallCrx) {
EXPECT_NE(string::npos, elements[1].find(" prodchannel="));
EXPECT_NE(string::npos, elements[1].find(" prodversion="));
+ // Look for additional attributes of the request, such as |version|,
+ // |requestid|, |lang|, and |nacl_arch|.
+ EXPECT_NE(string::npos, elements[1].find(" version="));
+ EXPECT_NE(string::npos, elements[1].find(" requestid="));
+ EXPECT_NE(string::npos, elements[1].find(" lang="));
+ EXPECT_NE(string::npos, elements[1].find(" nacl_arch="));
+
component_updater()->Stop();
}
« no previous file with comments | « chrome/browser/component_updater/component_updater_utils.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698