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

Issue 9582037: Make document service an interface (Closed)

Created:
8 years, 9 months ago by Greg Spencer (Chromium)
Modified:
8 years, 9 months ago
Reviewers:
satorux1, zel, Ben Chan
CC:
chromium-reviews, nkostylev+watch_chromium.org, achuith+watch_chromium.org, mihaip+watch_chromium.org, Aaron Boodman, rginda+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

This adds an interface for DocumentsService so that we can mock it. It also adds a mock class that can be used in testing. Added a test for CreateDirectory and GetFile on the GDataFilesystem class. BUG=chromium-os:27338 TEST=ran new unit tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=125926

Patch Set 1 : Adding mock for DocumentsService #

Total comments: 9

Patch Set 2 : Review changes #

Total comments: 38

Patch Set 3 : Review changes #

Total comments: 5

Patch Set 4 : Review changes #

Patch Set 5 : Review changes #

Patch Set 6 : Upload after merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+371 lines, -38 lines) Patch
M chrome/browser/chromeos/gdata/gdata.h View 1 2 3 3 chunks +62 lines, -26 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_file_system.h View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_file_system.cc View 1 2 3 4 5 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc View 1 2 3 4 5 7 chunks +84 lines, -7 lines 0 comments Download
A chrome/browser/chromeos/gdata/gdata_mock.h View 1 2 1 chunk +101 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/gdata/gdata_mock.cc View 1 2 3 4 5 1 chunk +116 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Greg Spencer (Chromium)
8 years, 9 months ago (2012-03-07 22:38:20 UTC) #1
zel
+satorux, benchan
8 years, 9 months ago (2012-03-07 23:53:13 UTC) #2
zel
http://codereview.chromium.org/9582037/diff/4008/chrome/browser/chromeos/gdata/gdata.h File chrome/browser/chromeos/gdata/gdata.h (right): http://codereview.chromium.org/9582037/diff/4008/chrome/browser/chromeos/gdata/gdata.h#newcode199 chrome/browser/chromeos/gdata/gdata.h:199: // needed. |callback| will be run with the error ...
8 years, 9 months ago (2012-03-08 00:02:03 UTC) #3
Greg Spencer (Chromium)
http://codereview.chromium.org/9582037/diff/4008/chrome/browser/chromeos/gdata/gdata.h File chrome/browser/chromeos/gdata/gdata.h (right): http://codereview.chromium.org/9582037/diff/4008/chrome/browser/chromeos/gdata/gdata.h#newcode199 chrome/browser/chromeos/gdata/gdata.h:199: // needed. |callback| will be run with the error ...
8 years, 9 months ago (2012-03-08 01:10:39 UTC) #4
satorux1
http://codereview.chromium.org/9582037/diff/4008/chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc File chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc (right): http://codereview.chromium.org/9582037/diff/4008/chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc#newcode37 chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc:37: #define FPL(x) FILE_PATH_LITERAL(x) On 2012/03/08 01:10:39, Greg Spencer (Chromium) ...
8 years, 9 months ago (2012-03-08 01:48:37 UTC) #5
Ben Chan
https://chromiumcodereview.appspot.com/9582037/diff/9001/chrome/browser/chromeos/gdata/gdata.cc File chrome/browser/chromeos/gdata/gdata.cc (right): https://chromiumcodereview.appspot.com/9582037/diff/9001/chrome/browser/chromeos/gdata/gdata.cc#newcode1095 chrome/browser/chromeos/gdata/gdata.cc:1095: DocumentsServiceInterface::DocumentsServiceInterface() { this can be removed. https://chromiumcodereview.appspot.com/9582037/diff/9001/chrome/browser/chromeos/gdata/gdata.h File chrome/browser/chromeos/gdata/gdata.h ...
8 years, 9 months ago (2012-03-08 02:01:19 UTC) #6
Greg Spencer (Chromium)
http://codereview.chromium.org/9582037/diff/4008/chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc File chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc (right): http://codereview.chromium.org/9582037/diff/4008/chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc#newcode37 chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc:37: #define FPL(x) FILE_PATH_LITERAL(x) On 2012/03/08 01:48:37, satorux1 wrote: > ...
8 years, 9 months ago (2012-03-08 19:06:35 UTC) #7
zel
http://codereview.chromium.org/9582037/diff/17001/chrome/browser/chromeos/gdata/gdata.h File chrome/browser/chromeos/gdata/gdata.h (right): http://codereview.chromium.org/9582037/diff/17001/chrome/browser/chromeos/gdata/gdata.h#newcode282 chrome/browser/chromeos/gdata/gdata.h:282: const GetDataCallback& callback) OVERRIDE; indentation - here an for ...
8 years, 9 months ago (2012-03-08 19:14:08 UTC) #8
satorux1
http://codereview.chromium.org/9582037/diff/9001/chrome/browser/chromeos/gdata/gdata_file_system.h File chrome/browser/chromeos/gdata/gdata_file_system.h (right): http://codereview.chromium.org/9582037/diff/9001/chrome/browser/chromeos/gdata/gdata_file_system.h#newcode369 chrome/browser/chromeos/gdata/gdata_file_system.h:369: void ReplaceDocumentsService( On 2012/03/08 19:06:35, Greg Spencer (Chromium) wrote: ...
8 years, 9 months ago (2012-03-08 19:28:37 UTC) #9
Greg Spencer (Chromium)
http://codereview.chromium.org/9582037/diff/17001/chrome/browser/chromeos/gdata/gdata_mock.cc File chrome/browser/chromeos/gdata/gdata_mock.cc (right): http://codereview.chromium.org/9582037/diff/17001/chrome/browser/chromeos/gdata/gdata_mock.cc#newcode82 chrome/browser/chromeos/gdata/gdata_mock.cc:82: const DownloadActionCallback& callback) { On 2012/03/08 19:14:08, zel wrote: ...
8 years, 9 months ago (2012-03-08 19:44:35 UTC) #10
zel
http://codereview.chromium.org/9582037/diff/17001/chrome/browser/chromeos/gdata/gdata_mock.cc File chrome/browser/chromeos/gdata/gdata_mock.cc (right): http://codereview.chromium.org/9582037/diff/17001/chrome/browser/chromeos/gdata/gdata_mock.cc#newcode82 chrome/browser/chromeos/gdata/gdata_mock.cc:82: const DownloadActionCallback& callback) { I guess that would work ...
8 years, 9 months ago (2012-03-08 21:02:38 UTC) #11
Greg Spencer (Chromium)
PTAL. I think I've addressed everything. http://codereview.chromium.org/9582037/diff/9001/chrome/browser/chromeos/gdata/gdata_file_system.h File chrome/browser/chromeos/gdata/gdata_file_system.h (right): http://codereview.chromium.org/9582037/diff/9001/chrome/browser/chromeos/gdata/gdata_file_system.h#newcode369 chrome/browser/chromeos/gdata/gdata_file_system.h:369: void ReplaceDocumentsService( On ...
8 years, 9 months ago (2012-03-09 00:33:30 UTC) #12
satorux1
LGTM
8 years, 9 months ago (2012-03-09 01:00:43 UTC) #13
zel
lgtm
8 years, 9 months ago (2012-03-09 01:05:55 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gspencer@chromium.org/9582037/25001
8 years, 9 months ago (2012-03-09 20:53:10 UTC) #15
commit-bot: I haz the power
8 years, 9 months ago (2012-03-09 23:00:38 UTC) #16
Change committed as 125926

Powered by Google App Engine
This is Rietveld 408576698