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

Issue 9427001: Extend TwoClientExtensionSettingsSyncTest to test app settings. (Closed)

Created:
8 years, 10 months ago by not at google - send to devlin
Modified:
8 years, 9 months ago
Reviewers:
Raghu Simha, akalin
CC:
chromium-reviews, ncarter (slow), mihaip+watch_chromium.org, Aaron Boodman, tim (not reviewing), benwells
Visibility:
Public.

Description

Extend TwoClientExtensionSettingsSyncTest to test app settings. Doing so found a rather fundamental bug; the protobuf representation for apps and extensions settings are different, yet they are being treated the same. This patch fixes that, too. BUG=114974 TEST=unit_tests, browser_tests, sync_integration_tests (all --gtest_filter=*ExtensionSetting*) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=123929

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : move installall methods to helpers #

Total comments: 2

Patch Set 5 : Same -> Different #

Patch Set 6 : oops #

Total comments: 4

Patch Set 7 : rename, couple of comments #

Patch Set 8 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+330 lines, -348 lines) Patch
M chrome/browser/extensions/settings/setting_sync_data.h View 1 2 3 4 chunks +15 lines, -8 lines 0 comments Download
M chrome/browser/extensions/settings/setting_sync_data.cc View 1 2 3 4 5 6 3 chunks +32 lines, -13 lines 0 comments Download
M chrome/browser/extensions/settings/settings_apitest.cc View 1 2 3 4 5 6 7 7 chunks +10 lines, -9 lines 0 comments Download
M chrome/browser/extensions/settings/settings_backend.cc View 1 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/extensions/settings/settings_sync_unittest.cc View 1 2 3 4 5 6 7 21 chunks +61 lines, -60 lines 0 comments Download
M chrome/browser/extensions/settings/settings_sync_util.h View 1 2 3 1 chunk +15 lines, -10 lines 0 comments Download
M chrome/browser/extensions/settings/settings_sync_util.cc View 1 1 chunk +62 lines, -14 lines 0 comments Download
M chrome/browser/extensions/settings/syncable_settings_storage.cc View 1 5 chunks +14 lines, -13 lines 0 comments Download
M chrome/browser/sync/test/integration/apps_helper.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/sync/test/integration/apps_helper.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/sync/test/integration/extensions_helper.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/sync/test/integration/extensions_helper.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
A + chrome/browser/sync/test/integration/two_client_extension_settings_and_app_settings_sync_test.cc View 1 2 3 4 5 6 7 chunks +96 lines, -46 lines 0 comments Download
M chrome/browser/sync/test/integration/two_client_extension_settings_sync_test.cc View 1 2 3 4 5 6 1 chunk +0 lines, -171 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 23 (0 generated)
not at google - send to devlin
8 years, 10 months ago (2012-02-20 06:54:08 UTC) #1
not at google - send to devlin
+rsimha
8 years, 10 months ago (2012-02-22 21:10:46 UTC) #2
akalin
On 2012/02/22 21:10:46, kalman wrote: > +rsimha High-level comment: I think there could be a ...
8 years, 10 months ago (2012-02-22 22:47:07 UTC) #3
not at google - send to devlin
Yep, I know about parameterised tests. They're pretty painful to set up -- probably worth ...
8 years, 10 months ago (2012-02-22 22:49:56 UTC) #4
Raghu Simha
On 2012/02/22 22:47:07, akalin wrote: > High-level comment: I think there could be a better ...
8 years, 10 months ago (2012-02-23 08:22:52 UTC) #5
not at google - send to devlin
On 2012/02/23 08:22:52, rsimha wrote: > On 2012/02/22 22:47:07, akalin wrote: > > High-level comment: ...
8 years, 10 months ago (2012-02-23 11:20:54 UTC) #6
Raghu Simha
On 2012/02/23 11:20:54, kalman wrote: > I think that two clients is all the tests ...
8 years, 10 months ago (2012-02-23 21:48:49 UTC) #7
not at google - send to devlin
Move done. Also rebased.
8 years, 10 months ago (2012-02-24 04:08:12 UTC) #8
akalin
On 2012/02/24 04:08:12, kalman wrote: > Move done. Also rebased. Did you see my comment ...
8 years, 10 months ago (2012-02-24 20:28:01 UTC) #9
not at google - send to devlin
> Did you see my comment re. value-parametrized or type-parametrized tests? Yes, and I responded. ...
8 years, 10 months ago (2012-02-25 01:58:21 UTC) #10
akalin
On 2012/02/25 01:58:21, kalman wrote: > In any case -- this code review seems to ...
8 years, 10 months ago (2012-02-25 02:02:53 UTC) #11
akalin
And I see your reply now. I must have missed it, sorry.
8 years, 10 months ago (2012-02-25 02:03:23 UTC) #12
akalin
http://codereview.chromium.org/9427001/diff/16001/chrome/browser/sync/test/integration/two_client_extension_settings_sync_test.cc File chrome/browser/sync/test/integration/two_client_extension_settings_sync_test.cc (right): http://codereview.chromium.org/9427001/diff/16001/chrome/browser/sync/test/integration/two_client_extension_settings_sync_test.cc#newcode204 chrome/browser/sync/test/integration/two_client_extension_settings_sync_test.cc:204: ASSERT_PRED3(StartWithSameSettingsTest, Same -> Different
8 years, 10 months ago (2012-02-27 23:04:53 UTC) #13
not at google - send to devlin
As discussed, renaming the file to two_client_extension_settings_and_app_settings_test.cc. http://codereview.chromium.org/9427001/diff/16001/chrome/browser/sync/test/integration/two_client_extension_settings_sync_test.cc File chrome/browser/sync/test/integration/two_client_extension_settings_sync_test.cc (right): http://codereview.chromium.org/9427001/diff/16001/chrome/browser/sync/test/integration/two_client_extension_settings_sync_test.cc#newcode204 chrome/browser/sync/test/integration/two_client_extension_settings_sync_test.cc:204: ASSERT_PRED3(StartWithSameSettingsTest, On ...
8 years, 10 months ago (2012-02-27 23:38:17 UTC) #14
akalin
couple more http://codereview.chromium.org/9427001/diff/23001/chrome/browser/extensions/settings/setting_sync_data.cc File chrome/browser/extensions/settings/setting_sync_data.cc (right): http://codereview.chromium.org/9427001/diff/23001/chrome/browser/extensions/settings/setting_sync_data.cc#newcode30 chrome/browser/extensions/settings/setting_sync_data.cc:30: // The data can only be either ...
8 years, 10 months ago (2012-02-27 23:42:10 UTC) #15
not at google - send to devlin
move done http://codereview.chromium.org/9427001/diff/23001/chrome/browser/extensions/settings/setting_sync_data.cc File chrome/browser/extensions/settings/setting_sync_data.cc (right): http://codereview.chromium.org/9427001/diff/23001/chrome/browser/extensions/settings/setting_sync_data.cc#newcode30 chrome/browser/extensions/settings/setting_sync_data.cc:30: // The data can only be either ...
8 years, 10 months ago (2012-02-27 23:45:46 UTC) #16
akalin
LGTM
8 years, 10 months ago (2012-02-28 00:41:59 UTC) #17
not at google - send to devlin
Thanks Fred. Raghu, anything else you can think of?
8 years, 10 months ago (2012-02-28 00:43:08 UTC) #18
Raghu Simha
LGTM! Thanks for writing these tests, and sorry about the long review this ended up ...
8 years, 10 months ago (2012-02-28 01:24:01 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/9427001/23002
8 years, 10 months ago (2012-02-28 01:34:32 UTC) #20
commit-bot: I haz the power
Can't apply patch for file chrome/browser/extensions/settings/settings_apitest.cc. While running patch -p1 --forward --force; patching file chrome/browser/extensions/settings/settings_apitest.cc ...
8 years, 10 months ago (2012-02-28 01:34:37 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/9427001/25002
8 years, 10 months ago (2012-02-28 03:24:49 UTC) #22
commit-bot: I haz the power
8 years, 9 months ago (2012-02-28 07:22:42 UTC) #23
Change committed as 123929

Powered by Google App Engine
This is Rietveld 408576698