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

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

Issue 8122015: Component updater: send extra attributes in the request to (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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_service.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/component_updater_service_unittest.cc
===================================================================
--- chrome/browser/component_updater/component_updater_service_unittest.cc (revision 103990)
+++ chrome/browser/component_updater/component_updater_service_unittest.cc (working copy)
@@ -56,6 +56,8 @@
virtual GURL UpdateUrl() OVERRIDE { return GURL("http://localhost/upd"); }
+ virtual const char* ExtraRequestParams() OVERRIDE { return "extra=foo"; }
+
virtual size_t UrlSizeLimit() OVERRIDE { return 256; }
virtual net::URLRequestContextGetter* RequestContext() OVERRIDE {
@@ -238,7 +240,7 @@
RegisterComponent(&com, kTestComponent_abag, Version("1.1"));
const char expected_update_url[] =
- "http://localhost/upd?x=id%3D"
+ "http://localhost/upd?extra=foo&x=id%3D"
"abagagagagagagagagagagagagagagag%26v%3D1.1%26uc";
interceptor->SetResponse(expected_update_url,
@@ -324,12 +326,12 @@
RegisterComponent(&com2, kTestComponent_abag, Version("2.2"));
const char expected_update_url_1[] =
- "http://localhost/upd?x=id%3D"
+ "http://localhost/upd?extra=foo&x=id%3D"
"jebgalgnebhfojomionfpkfelancnnkf%26v%3D0.9%26uc&x=id%3D"
"abagagagagagagagagagagagagagagag%26v%3D2.2%26uc";
const char expected_update_url_2[] =
- "http://localhost/upd?x=id%3D"
+ "http://localhost/upd?extra=foo&x=id%3D"
"abagagagagagagagagagagagagagagag%26v%3D2.2%26uc&x=id%3D"
"jebgalgnebhfojomionfpkfelancnnkf%26v%3D1.0%26uc";
@@ -388,7 +390,7 @@
RegisterComponent(&com, kTestComponent_jebg, Version("0.9"));
const char expected_update_url[] =
- "http://localhost/upd?x=id%3D"
+ "http://localhost/upd?extra=foo&x=id%3D"
"jebgalgnebhfojomionfpkfelancnnkf%26v%3D0.9%26uc";
interceptor->SetResponse(expected_update_url,
« no previous file with comments | « chrome/browser/component_updater/component_updater_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698