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

Issue 10830181: Implement initialization for GDataCache to use in-memory metadata for tests. (Closed)

Created:
8 years, 4 months ago by Haruki Sato
Modified:
8 years, 4 months ago
Reviewers:
achuithb, satorux1, kochi, hshi1
CC:
chromium-reviews, achuith+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Implement initialization for GDataCache to use in-memory metadata for tests. Use the in-memory version for GDataFileSystemTest. BUG=137945 TEST=unit_tests --gtest_filter='GDataFileSystemTest*' Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=151013

Patch Set 1 : #

Total comments: 8

Patch Set 2 : Add 'ForTesting' versions. #

Total comments: 8

Patch Set 3 : Style and comment fixes. #

Total comments: 2

Patch Set 4 : RenameGDataCacheMetadataMap to FakeGDataCacheMetadata #

Total comments: 2

Patch Set 5 : rebase, fix comment text. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -19 lines) Patch
M chrome/browser/chromeos/gdata/gdata_cache.h View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_cache.cc View 1 2 chunks +17 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_cache_metadata.h View 1 2 3 1 chunk +6 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_cache_metadata.cc View 1 2 3 4 8 chunks +22 lines, -13 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 18 (0 generated)
Haruki Sato
Hello Reviewers, Could you take a look and advice me if this is the best ...
8 years, 4 months ago (2012-08-06 08:52:48 UTC) #1
kochi
Could you use enum instead of boolean for arguments in this CL? http://chromiumcodereview.appspot.com/10830181/diff/3001/chrome/browser/chromeos/gdata/gdata_cache_metadata.h File chrome/browser/chromeos/gdata/gdata_cache_metadata.h ...
8 years, 4 months ago (2012-08-06 09:02:17 UTC) #2
Haruki Sato
Thank you for the advice. Will work on it. Please let me know if you ...
8 years, 4 months ago (2012-08-06 09:04:41 UTC) #3
hshi1
This looks good to me, but I'd suggest Satoru to take a look as he ...
8 years, 4 months ago (2012-08-06 14:11:07 UTC) #4
achuithb
http://codereview.chromium.org/10830181/diff/3001/chrome/browser/chromeos/gdata/gdata_cache.h File chrome/browser/chromeos/gdata/gdata_cache.h (right): http://codereview.chromium.org/10830181/diff/3001/chrome/browser/chromeos/gdata/gdata_cache.h#newcode320 chrome/browser/chromeos/gdata/gdata_cache.h:320: // Force std::map implementaition for metadata. spelling - implementation. ...
8 years, 4 months ago (2012-08-06 23:22:20 UTC) #5
achuithb
Please don't land this until my concern in the bug is addressed - we need ...
8 years, 4 months ago (2012-08-06 23:23:51 UTC) #6
satorux1
As mentioned in the bug tracker, making the test faster is a good thing, but ...
8 years, 4 months ago (2012-08-07 10:50:08 UTC) #7
Haruki Sato
Thank you for the review. I understand your concerns. Achuith, are we planning to remove ...
8 years, 4 months ago (2012-08-07 13:40:39 UTC) #8
satorux1
Hmm, I'd rather recommend to pursue this patch. We can revisit if the maintenance issue ...
8 years, 4 months ago (2012-08-07 15:11:08 UTC) #9
Haruki Sato
Removed the boolean flag and added RequestInitializeOnUIThreadForTesting() and InitializeForTesting(). and I feel like it's much ...
8 years, 4 months ago (2012-08-08 05:00:42 UTC) #10
achuithb
http://codereview.chromium.org/10830181/diff/3002/chrome/browser/chromeos/gdata/gdata_cache.h File chrome/browser/chromeos/gdata/gdata_cache.h (right): http://codereview.chromium.org/10830181/diff/3002/chrome/browser/chromeos/gdata/gdata_cache.h#newcode335 chrome/browser/chromeos/gdata/gdata_cache.h:335: // Initializes the cache with in-memory cache for testing. ...
8 years, 4 months ago (2012-08-08 05:07:31 UTC) #11
Haruki Sato
http://codereview.chromium.org/10830181/diff/3002/chrome/browser/chromeos/gdata/gdata_cache.h File chrome/browser/chromeos/gdata/gdata_cache.h (right): http://codereview.chromium.org/10830181/diff/3002/chrome/browser/chromeos/gdata/gdata_cache.h#newcode335 chrome/browser/chromeos/gdata/gdata_cache.h:335: // Initializes the cache with in-memory cache for testing. ...
8 years, 4 months ago (2012-08-08 05:57:38 UTC) #12
satorux1
http://codereview.chromium.org/10830181/diff/11002/chrome/browser/chromeos/gdata/gdata_cache_metadata.cc File chrome/browser/chromeos/gdata/gdata_cache_metadata.cc (right): http://codereview.chromium.org/10830181/diff/11002/chrome/browser/chromeos/gdata/gdata_cache_metadata.cc#newcode604 chrome/browser/chromeos/gdata/gdata_cache_metadata.cc:604: new GDataCacheMetadataMap(blocking_task_runner)); Could you rename GDataCacheMetadataMap to FakeGDataCacheMetadata, as ...
8 years, 4 months ago (2012-08-08 15:53:57 UTC) #13
Haruki Sato
Sounds like the Map impl of GDataCacheMetadata would be only used for tests. Renamed it ...
8 years, 4 months ago (2012-08-09 02:04:02 UTC) #14
satorux1
LGTM with a nit http://codereview.chromium.org/10830181/diff/6004/chrome/browser/chromeos/gdata/gdata_cache_metadata.cc File chrome/browser/chromeos/gdata/gdata_cache_metadata.cc (right): http://codereview.chromium.org/10830181/diff/6004/chrome/browser/chromeos/gdata/gdata_cache_metadata.cc#newcode290 chrome/browser/chromeos/gdata/gdata_cache_metadata.cc:290: // Used for testings. // ...
8 years, 4 months ago (2012-08-09 08:35:07 UTC) #15
Haruki Sato
Thank you for the review. Adding to CQ. http://codereview.chromium.org/10830181/diff/6004/chrome/browser/chromeos/gdata/gdata_cache_metadata.cc File chrome/browser/chromeos/gdata/gdata_cache_metadata.cc (right): http://codereview.chromium.org/10830181/diff/6004/chrome/browser/chromeos/gdata/gdata_cache_metadata.cc#newcode290 chrome/browser/chromeos/gdata/gdata_cache_metadata.cc:290: // ...
8 years, 4 months ago (2012-08-10 07:28:11 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haruki@chromium.org/10830181/7007
8 years, 4 months ago (2012-08-10 07:28:24 UTC) #17
commit-bot: I haz the power
8 years, 4 months ago (2012-08-10 09:41:30 UTC) #18
Change committed as 151013

Powered by Google App Engine
This is Rietveld 408576698