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

Issue 7104072: Adding new extension sync integration tests. Also modified the way that profile (Closed)

Created:
9 years, 6 months ago by braffert
Modified:
9 years, 6 months ago
CC:
chromium-reviews, ncarter (slow), idana, Raghu Simha, Erik does not do reviews, Aaron Boodman, Paweł Hajdan Jr., tim (not reviewing)
Visibility:
Public.

Description

Adding new apps/extension sync integration tests. Also modified the way that profile extensions states are compared for equality. Previously, the allow in incognito mode setting was not accounted for in checking for equality. New tests: TwoClientLiveExtensionsSyncTest.Merge TwoClientLiveExtensionsSyncTest.UpdateEnableDisableExtension TwoClientLiveExtensionsSyncTest.UpdateIncognitoEnableDisable TwoClientLiveAppsSyncTest.Merge TwoClientLiveAppsSyncTest.UpdateEnableDisableApp TwoClientLiveAppsSyncTest.UpdateIncognitoEnableDisable BUG=85482 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=88681

Patch Set 1 #

Patch Set 2 : Fixed lint error - misplaced comma #

Total comments: 4

Patch Set 3 : Review changes #

Total comments: 18

Patch Set 4 : More review changed - removed overloaded operator #

Patch Set 5 : Fix spacing #

Total comments: 8

Patch Set 6 : Review changes #

Total comments: 8

Patch Set 7 : More review changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+337 lines, -27 lines) Patch
M chrome/test/live_sync/live_apps_sync_test.h View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/test/live_sync/live_apps_sync_test.cc View 1 2 3 4 5 2 chunks +21 lines, -8 lines 0 comments Download
M chrome/test/live_sync/live_extensions_sync_test.h View 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/test/live_sync/live_extensions_sync_test.cc View 1 2 3 4 5 2 chunks +23 lines, -7 lines 0 comments Download
M chrome/test/live_sync/live_sync_extension_helper.h View 1 2 3 4 5 6 3 chunks +30 lines, -7 lines 0 comments Download
M chrome/test/live_sync/live_sync_extension_helper.cc View 1 2 3 4 5 6 7 chunks +72 lines, -5 lines 0 comments Download
M chrome/test/live_sync/two_client_live_apps_sync_test.cc View 1 2 3 1 chunk +83 lines, -0 lines 0 comments Download
M chrome/test/live_sync/two_client_live_extensions_sync_test.cc View 1 2 3 1 chunk +84 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
braffert
9 years, 6 months ago (2011-06-08 23:05:25 UTC) #1
akalin
http://codereview.chromium.org/7104072/diff/5002/chrome/test/live_sync/live_extensions_sync_test.h File chrome/test/live_sync/live_extensions_sync_test.h (left): http://codereview.chromium.org/7104072/diff/5002/chrome/test/live_sync/live_extensions_sync_test.h#oldcode43 chrome/test/live_sync/live_extensions_sync_test.h:43: You'll want to make similar changes to live_apps_sync_test.{h,cc}. http://codereview.chromium.org/7104072/diff/5002/chrome/test/live_sync/live_sync_extension_helper.h ...
9 years, 6 months ago (2011-06-09 03:21:59 UTC) #2
braffert
I've added similar tests for apps, and also changed ExtensionState to a struct as suggested. ...
9 years, 6 months ago (2011-06-09 18:20:41 UTC) #3
akalin
http://codereview.chromium.org/7104072/diff/5003/chrome/test/live_sync/live_sync_extension_helper.cc File chrome/test/live_sync/live_sync_extension_helper.cc (right): http://codereview.chromium.org/7104072/diff/5003/chrome/test/live_sync/live_sync_extension_helper.cc#newcode130 chrome/test/live_sync/live_sync_extension_helper.cc:130: if (extension_service->IsIncognitoEnabled((*it)->id())) { lotta duplicated code. Perhaps decomp into ...
9 years, 6 months ago (2011-06-09 20:35:36 UTC) #4
anna
9 years, 6 months ago (2011-06-09 21:37:34 UTC) #5
anna
http://codereview.chromium.org/7104072/diff/5003/chrome/test/live_sync/two_client_live_apps_sync_test.cc File chrome/test/live_sync/two_client_live_apps_sync_test.cc (right): http://codereview.chromium.org/7104072/diff/5003/chrome/test/live_sync/two_client_live_apps_sync_test.cc#newcode151 chrome/test/live_sync/two_client_live_apps_sync_test.cc:151: IN_PROC_BROWSER_TEST_F(TwoClientLiveAppsSyncTest, Merge) { It would be great to test ...
9 years, 6 months ago (2011-06-09 21:37:58 UTC) #6
braffert
http://codereview.chromium.org/7104072/diff/5003/chrome/test/live_sync/live_sync_extension_helper.cc File chrome/test/live_sync/live_sync_extension_helper.cc (right): http://codereview.chromium.org/7104072/diff/5003/chrome/test/live_sync/live_sync_extension_helper.cc#newcode130 chrome/test/live_sync/live_sync_extension_helper.cc:130: if (extension_service->IsIncognitoEnabled((*it)->id())) { On 2011/06/09 20:35:37, akalin wrote: > ...
9 years, 6 months ago (2011-06-09 23:09:35 UTC) #7
anna
LGTM: tests.
9 years, 6 months ago (2011-06-09 23:25:58 UTC) #8
akalin
http://codereview.chromium.org/7104072/diff/4026/chrome/test/live_sync/live_sync_extension_helper.cc File chrome/test/live_sync/live_sync_extension_helper.cc (right): http://codereview.chromium.org/7104072/diff/4026/chrome/test/live_sync/live_sync_extension_helper.cc#newcode176 chrome/test/live_sync/live_sync_extension_helper.cc:176: if (!it->second.Equals(state_map2[it->first])) { this isn't quite correct. state_map2[...] auto-creates ...
9 years, 6 months ago (2011-06-09 23:44:39 UTC) #9
braffert
Hopefully this will take care of everything. Thanks for the thorough reviews. http://codereview.chromium.org/7104072/diff/4026/chrome/test/live_sync/live_sync_extension_helper.cc File chrome/test/live_sync/live_sync_extension_helper.cc ...
9 years, 6 months ago (2011-06-10 01:23:57 UTC) #10
akalin
LGTM, after the below nits Since commit-bot doesn't run the sync integration tests, after you ...
9 years, 6 months ago (2011-06-10 01:56:44 UTC) #11
braffert
The last round of suggestions have all been handled - submitting to the commit bot. ...
9 years, 6 months ago (2011-06-10 16:49:17 UTC) #12
commit-bot: I haz the power
9 years, 6 months ago (2011-06-10 17:38:51 UTC) #13
Change committed as 88681

Powered by Google App Engine
This is Rietveld 408576698