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

Issue 11416030: google_apis: Add GetURL() to test_server::HttpServer (Closed)

Created:
8 years, 1 month ago by satorux1
Modified:
8 years, 1 month ago
Reviewers:
mtomasz, hashimoto
CC:
chromium-reviews, stevenjb+watch_chromium.org, achuith+watch_chromium.org, oshima+watch_chromium.org
Visibility:
Public.

Description

google_apis: Add GetURL() to test_server::HttpServer Add GetURL() and remove the return value from Register* functions, as using GetURL() at the call sites of URLFetcher makes the code clearer about target URLs. Along the way, add tests for GetBaseURL(), GetURL(), RegisterDefaultResponse(), RegisterFileResponse(), as well as concurrent fetches. BUG=148710 TEST=none; just changing test utils. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=168482

Patch Set 1 #

Total comments: 21

Patch Set 2 : address comments #

Patch Set 3 : diff against the correct branch. #

Patch Set 4 : fix win test failure #

Total comments: 2

Patch Set 5 : rebase #

Patch Set 6 : fix android #

Unified diffs Side-by-side diffs Delta from patch set Stats (+206 lines, -86 lines) Patch
M chrome/browser/google_apis/test_server/http_server.h View 1 2 2 chunks +17 lines, -8 lines 0 comments Download
M chrome/browser/google_apis/test_server/http_server.cc View 1 2 4 chunks +19 lines, -8 lines 0 comments Download
M chrome/browser/google_apis/test_server/http_server_unittest.cc View 1 2 3 4 5 3 chunks +169 lines, -68 lines 0 comments Download
M chrome/test/data/chromeos/gdata/testfile.txt View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
satorux1
8 years, 1 month ago (2012-11-16 05:09:55 UTC) #1
hashimoto
https://codereview.chromium.org/11416030/diff/1/chrome/browser/google_apis/test_server/http_server.cc File chrome/browser/google_apis/test_server/http_server.cc (right): https://codereview.chromium.org/11416030/diff/1/chrome/browser/google_apis/test_server/http_server.cc#newcode155 chrome/browser/google_apis/test_server/http_server.cc:155: DCHECK(StartsWithASCII(relative_url, "/", true)); Please add describe that 'true' means ...
8 years, 1 month ago (2012-11-16 05:38:10 UTC) #2
satorux1
http://codereview.chromium.org/11416030/diff/1/chrome/browser/google_apis/test_server/http_server.cc File chrome/browser/google_apis/test_server/http_server.cc (right): http://codereview.chromium.org/11416030/diff/1/chrome/browser/google_apis/test_server/http_server.cc#newcode155 chrome/browser/google_apis/test_server/http_server.cc:155: DCHECK(StartsWithASCII(relative_url, "/", true)); On 2012/11/16 05:38:10, hashimoto wrote: > ...
8 years, 1 month ago (2012-11-16 05:56:44 UTC) #3
hashimoto
lgtm, please diff against the correct branch.
8 years, 1 month ago (2012-11-16 06:13:07 UTC) #4
satorux1
oops. uploaded the right diff.
8 years, 1 month ago (2012-11-16 06:33:51 UTC) #5
hashimoto
lgtm
8 years, 1 month ago (2012-11-16 06:43:09 UTC) #6
satorux1
fix the win test failure...
8 years, 1 month ago (2012-11-16 08:10:09 UTC) #7
mtomasz
lgtm Thanks for this! https://codereview.chromium.org/11416030/diff/11003/chrome/browser/google_apis/test_server/http_server_unittest.cc File chrome/browser/google_apis/test_server/http_server_unittest.cc (right): https://codereview.chromium.org/11416030/diff/11003/chrome/browser/google_apis/test_server/http_server_unittest.cc#newcode166 chrome/browser/google_apis/test_server/http_server_unittest.cc:166: // Trim the trailing whitespace ...
8 years, 1 month ago (2012-11-16 17:24:17 UTC) #8
satorux1
https://codereview.chromium.org/11416030/diff/11003/chrome/browser/google_apis/test_server/http_server_unittest.cc File chrome/browser/google_apis/test_server/http_server_unittest.cc (right): https://codereview.chromium.org/11416030/diff/11003/chrome/browser/google_apis/test_server/http_server_unittest.cc#newcode166 chrome/browser/google_apis/test_server/http_server_unittest.cc:166: // Trim the trailing whitespace as it can be ...
8 years, 1 month ago (2012-11-16 23:46:50 UTC) #9
satorux1
8 years, 1 month ago (2012-11-19 00:07:49 UTC) #10
HttpServerTest.RegisterFileResponse failed on Android, due to failure to open a
test file. Looks we cannot open test files on Android. For now, I'm going to
exclude the test from Android.

Powered by Google App Engine
This is Rietveld 408576698