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

Issue 10640006: gdata: Stop getting GDataUploader via GDataSystemService (Closed)

Created:
8 years, 6 months ago by satorux1
Modified:
8 years, 6 months ago
Reviewers:
hshi1
CC:
chromium-reviews, achuith+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Visibility:
Public.

Description

gdata: Stop getting GDataUploader via GDataSystemService For writing upload related unit tests in gdata_file_system_unittest.cc, we need to be able to inject a mock GDataUploader. Otherwise, GDataFileSystem ends up using a production GDataUploader that makes real HTTP requests to the gdata server. Note that this is a stop-gap solution. The inter-dependencies between GDataUploader and GDataSystemService should be eliminated. BUG=127080, 133860 TEST=uploading works as before Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=143559

Patch Set 1 #

Total comments: 4

Patch Set 2 : address comments #

Patch Set 3 : add OVERRIDE #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -22 lines) Patch
M chrome/browser/chromeos/gdata/gdata_file_system.h View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_file_system.cc View 3 chunks +3 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc View 4 chunks +19 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_system_service.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/gdata/gdata_system_service.cc View 1 2 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_uploader.h View 1 2 1 chunk +32 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_uploader.cc View 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
satorux1
8 years, 6 months ago (2012-06-21 19:35:49 UTC) #1
hshi1
https://chromiumcodereview.appspot.com/10640006/diff/1/chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc File chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc (right): https://chromiumcodereview.appspot.com/10640006/diff/1/chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc#newcode1290 chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc:1290: scoped_ptr<StrictMock<MockGDataUploader> > mock_uploader_; By using StrictMock here is the ...
8 years, 6 months ago (2012-06-21 19:50:20 UTC) #2
satorux1
http://codereview.chromium.org/10640006/diff/1/chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc File chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc (right): http://codereview.chromium.org/10640006/diff/1/chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc#newcode1290 chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc:1290: scoped_ptr<StrictMock<MockGDataUploader> > mock_uploader_; On 2012/06/21 19:50:20, hshi1 wrote: > ...
8 years, 6 months ago (2012-06-21 19:57:46 UTC) #3
hshi1
Thanks and lgtm.
8 years, 6 months ago (2012-06-21 20:06:58 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/satorux@chromium.org/10640006/5003
8 years, 6 months ago (2012-06-22 06:41:57 UTC) #5
commit-bot: I haz the power
8 years, 6 months ago (2012-06-22 07:54:09 UTC) #6
Change committed as 143559

Powered by Google App Engine
This is Rietveld 408576698