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

Issue 12246002: Implement GetUploadStatusOperation on GData WAPI. (Closed)

Created:
7 years, 10 months ago by hidehiko
Modified:
7 years, 10 months ago
Reviewers:
hashimoto, satorux1, kinaba
CC:
chromium-reviews, achuith+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@b148632_create_base_operation
Visibility:
Public.

Description

Implement GetUploadStatusOperation on GData WAPI. As a preparation of 5xx error handling in DriveUploader, this CL implements the GDataWapiService::GetUploadStatus. BUG=148632 TEST=Ran unit_tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=184617

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Rebase #

Patch Set 3 : Update comments. #

Total comments: 18

Patch Set 4 : Update comments and add explicit initialization for text fixture. #

Patch Set 5 : Rebase #

Patch Set 6 : Remove unknown content length support, which is not used. #

Total comments: 4

Patch Set 7 : Fix mock server's behavior, as well as empty Range header handling. #

Total comments: 5

Patch Set 8 : Fix unittests. #

Patch Set 9 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+241 lines, -38 lines) Patch
M chrome/browser/google_apis/base_operations.cc View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/google_apis/gdata_wapi_operations.h View 1 2 3 4 5 6 7 8 1 chunk +43 lines, -0 lines 0 comments Download
M chrome/browser/google_apis/gdata_wapi_operations.cc View 1 2 3 4 5 6 7 8 4 chunks +60 lines, -15 lines 0 comments Download
M chrome/browser/google_apis/gdata_wapi_operations_unittest.cc View 1 2 3 4 5 6 7 8 8 chunks +122 lines, -19 lines 0 comments Download
M chrome/browser/google_apis/gdata_wapi_service.cc View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -2 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
hidehiko
This CL depends on https://codereview.chromium.org/12224026/ and https://codereview.chromium.org/12226008/. Also, I'll send a following CL to the ...
7 years, 10 months ago (2013-02-06 15:05:49 UTC) #1
satorux1
https://codereview.chromium.org/12246002/diff/11001/chrome/browser/google_apis/gdata_wapi_operations.h File chrome/browser/google_apis/gdata_wapi_operations.h (right): https://codereview.chromium.org/12246002/diff/11001/chrome/browser/google_apis/gdata_wapi_operations.h#newcode567 chrome/browser/google_apis/gdata_wapi_operations.h:567: // of a file. Could you be more specific? ...
7 years, 10 months ago (2013-02-07 05:38:57 UTC) #2
hidehiko
Thank you for your review. Could you take another look? https://codereview.chromium.org/12246002/diff/11001/chrome/browser/google_apis/gdata_wapi_operations.h File chrome/browser/google_apis/gdata_wapi_operations.h (right): https://codereview.chromium.org/12246002/diff/11001/chrome/browser/google_apis/gdata_wapi_operations.h#newcode567 ...
7 years, 10 months ago (2013-02-07 06:34:56 UTC) #3
satorux1
https://codereview.chromium.org/12246002/diff/14001/chrome/browser/google_apis/gdata_wapi_operations.h File chrome/browser/google_apis/gdata_wapi_operations.h (right): https://codereview.chromium.org/12246002/diff/14001/chrome/browser/google_apis/gdata_wapi_operations.h#newcode572 chrome/browser/google_apis/gdata_wapi_operations.h:572: // of a file. This operation calls |callback| given ...
7 years, 10 months ago (2013-02-07 06:54:13 UTC) #4
hashimoto
https://codereview.chromium.org/12246002/diff/14001/chrome/browser/google_apis/gdata_wapi_operations_unittest.cc File chrome/browser/google_apis/gdata_wapi_operations_unittest.cc (right): https://codereview.chromium.org/12246002/diff/14001/chrome/browser/google_apis/gdata_wapi_operations_unittest.cc#newcode332 chrome/browser/google_apis/gdata_wapi_operations_unittest.cc:332: int64 content_length_; Do we need to keep the values ...
7 years, 10 months ago (2013-02-07 06:56:13 UTC) #5
hidehiko
Thank you for your review. Could you take another look? https://codereview.chromium.org/12246002/diff/14001/chrome/browser/google_apis/gdata_wapi_operations.h File chrome/browser/google_apis/gdata_wapi_operations.h (right): https://codereview.chromium.org/12246002/diff/14001/chrome/browser/google_apis/gdata_wapi_operations.h#newcode572 ...
7 years, 10 months ago (2013-02-07 07:44:07 UTC) #6
hashimoto
https://codereview.chromium.org/12246002/diff/14001/chrome/browser/google_apis/gdata_wapi_operations_unittest.cc File chrome/browser/google_apis/gdata_wapi_operations_unittest.cc (right): https://codereview.chromium.org/12246002/diff/14001/chrome/browser/google_apis/gdata_wapi_operations_unittest.cc#newcode332 chrome/browser/google_apis/gdata_wapi_operations_unittest.cc:332: int64 content_length_; On 2013/02/07 07:44:07, hidehiko wrote: > On ...
7 years, 10 months ago (2013-02-07 07:56:10 UTC) #7
satorux1
https://codereview.chromium.org/12246002/diff/14001/chrome/browser/google_apis/gdata_wapi_operations.h File chrome/browser/google_apis/gdata_wapi_operations.h (right): https://codereview.chromium.org/12246002/diff/14001/chrome/browser/google_apis/gdata_wapi_operations.h#newcode584 chrome/browser/google_apis/gdata_wapi_operations.h:584: const UploadRangeCallback& callback, On 2013/02/07 07:44:07, hidehiko wrote: > ...
7 years, 10 months ago (2013-02-07 07:58:59 UTC) #8
kinaba
https://codereview.chromium.org/12246002/diff/14001/chrome/browser/google_apis/gdata_wapi_operations_unittest.cc File chrome/browser/google_apis/gdata_wapi_operations_unittest.cc (right): https://codereview.chromium.org/12246002/diff/14001/chrome/browser/google_apis/gdata_wapi_operations_unittest.cc#newcode1021 chrome/browser/google_apis/gdata_wapi_operations_unittest.cc:1021: kUploadContent.size()); The case has gone away when the streamed ...
7 years, 10 months ago (2013-02-07 08:01:10 UTC) #9
satorux1
On 2013/02/07 07:58:59, satorux1 wrote: > https://codereview.chromium.org/12246002/diff/14001/chrome/browser/google_apis/gdata_wapi_operations.h > File chrome/browser/google_apis/gdata_wapi_operations.h (right): > > https://codereview.chromium.org/12246002/diff/14001/chrome/browser/google_apis/gdata_wapi_operations.h#newcode584 > ...
7 years, 10 months ago (2013-02-07 08:16:12 UTC) #10
satorux1
I defer the review to kinaba@ and hashimoto@. leaving now.
7 years, 10 months ago (2013-02-07 08:16:35 UTC) #11
hidehiko
Thank you for your review. Could you take another look? https://codereview.chromium.org/12246002/diff/14001/chrome/browser/google_apis/gdata_wapi_operations.h File chrome/browser/google_apis/gdata_wapi_operations.h (right): https://codereview.chromium.org/12246002/diff/14001/chrome/browser/google_apis/gdata_wapi_operations.h#newcode584 ...
7 years, 10 months ago (2013-02-07 08:37:56 UTC) #12
kinaba
https://codereview.chromium.org/12246002/diff/15004/chrome/browser/google_apis/gdata_wapi_operations_unittest.cc File chrome/browser/google_apis/gdata_wapi_operations_unittest.cc (right): https://codereview.chromium.org/12246002/diff/15004/chrome/browser/google_apis/gdata_wapi_operations_unittest.cc#newcode250 chrome/browser/google_apis/gdata_wapi_operations_unittest.cc:250: end_position_ = 0; Theoretically, it should be end_position_ = ...
7 years, 10 months ago (2013-02-07 09:06:12 UTC) #13
hidehiko
# Sorry, rebase and my edit is mixed... Thank you for your review. Could you ...
7 years, 10 months ago (2013-02-08 09:17:00 UTC) #14
hashimoto
LGTM Please wait for kinaba's review
7 years, 10 months ago (2013-02-08 09:44:34 UTC) #15
kinaba
https://codereview.chromium.org/12246002/diff/13005/chrome/browser/google_apis/gdata_wapi_operations_unittest.cc File chrome/browser/google_apis/gdata_wapi_operations_unittest.cc (right): https://codereview.chromium.org/12246002/diff/13005/chrome/browser/google_apis/gdata_wapi_operations_unittest.cc#newcode316 chrome/browser/google_apis/gdata_wapi_operations_unittest.cc:316: "bytes=0-" + base::Int64ToString(received_bytes_ - 1)); Is 0- the expected ...
7 years, 10 months ago (2013-02-08 10:19:43 UTC) #16
hidehiko
Sorry it seems I had something mistake... # Probably, local test looks not working well... ...
7 years, 10 months ago (2013-02-08 11:53:10 UTC) #17
kinaba
On 2013/02/08 11:53:10, hidehiko wrote: > Sorry it seems I had something mistake... > # ...
7 years, 10 months ago (2013-02-14 02:59:54 UTC) #18
hidehiko
Rebased. Unfortunately, this CL got old so rebasing needed a bit task more than just ...
7 years, 10 months ago (2013-02-26 06:14:01 UTC) #19
kinaba
lgtm
7 years, 10 months ago (2013-02-26 06:42:44 UTC) #20
hashimoto
still looks lgtm to me
7 years, 10 months ago (2013-02-26 07:18:47 UTC) #21
hidehiko
Thank you for your review. Enqueueing to CQ.
7 years, 10 months ago (2013-02-26 07:23:13 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hidehiko@chromium.org/12246002/19001
7 years, 10 months ago (2013-02-26 07:23:32 UTC) #23
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=102676
7 years, 10 months ago (2013-02-26 08:17:43 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hidehiko@chromium.org/12246002/19001
7 years, 10 months ago (2013-02-26 08:18:08 UTC) #25
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=102697
7 years, 10 months ago (2013-02-26 09:11:16 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hidehiko@chromium.org/12246002/19001
7 years, 10 months ago (2013-02-26 09:12:41 UTC) #27
commit-bot: I haz the power
7 years, 10 months ago (2013-02-26 10:17:27 UTC) #28
Message was sent while issue was closed.
Change committed as 184617

Powered by Google App Engine
This is Rietveld 408576698