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

Issue 210063003: Refactor TestingPrefStore to make it useful to some tests of load errors and asynchrony. (Closed)

Created:
6 years, 9 months ago by erikwright (departed)
Modified:
6 years, 8 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Refactor TestingPrefStore to make it useful to some tests of load errors and asynchrony. BUG=349158 R=mnissler@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=260150

Patch Set 1 #

Patch Set 2 : WIP. #

Patch Set 3 : WIP. #

Patch Set 4 : WIP. #

Patch Set 5 : Comment fix. #

Patch Set 6 : Add committed and other changes. #

Patch Set 7 : Adopt a non-gmock approach in the clients. #

Total comments: 12

Patch Set 8 : Review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+139 lines, -72 lines) Patch
M base/prefs/overlay_user_pref_store_unittest.cc View 1 2 3 4 5 6 7 6 chunks +22 lines, -46 lines 0 comments Download
M base/prefs/pref_store_observer_mock.h View 1 2 3 4 5 6 7 1 chunk +15 lines, -5 lines 0 comments Download
M base/prefs/pref_store_observer_mock.cc View 1 2 3 4 5 6 7 1 chunk +21 lines, -1 line 0 comments Download
M base/prefs/testing_pref_store.h View 1 2 3 4 5 3 chunks +27 lines, -1 line 0 comments Download
M base/prefs/testing_pref_store.cc View 1 2 3 4 5 5 chunks +49 lines, -12 lines 0 comments Download
M components/policy/core/browser/configuration_policy_pref_store_unittest.cc View 1 2 3 4 5 6 7 3 chunks +5 lines, -7 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
erikwright (departed)
mnissler: PTAL.
6 years, 8 months ago (2014-03-27 19:22:04 UTC) #1
erikwright (departed)
On 2014/03/27 19:22:04, erikwright wrote: > mnissler: PTAL. This is used by https://codereview.chromium.org/205813002/
6 years, 8 months ago (2014-03-27 19:22:27 UTC) #2
Mattias Nissler (ping if slow)
https://codereview.chromium.org/210063003/diff/140001/base/prefs/overlay_user_pref_store_unittest.cc File base/prefs/overlay_user_pref_store_unittest.cc (right): https://codereview.chromium.org/210063003/diff/140001/base/prefs/overlay_user_pref_store_unittest.cc#newcode29 base/prefs/overlay_user_pref_store_unittest.cc:29: void ExpectAndPopOneValue(const std::string& value, It'd probably make sense to ...
6 years, 8 months ago (2014-03-27 20:28:05 UTC) #3
erikwright (departed)
Based on these comments and my responses, the only change I will implement is the ...
6 years, 8 months ago (2014-03-28 12:29:22 UTC) #4
Mattias Nissler (ping if slow)
https://codereview.chromium.org/210063003/diff/140001/base/prefs/testing_pref_store.cc File base/prefs/testing_pref_store.cc (right): https://codereview.chromium.org/210063003/diff/140001/base/prefs/testing_pref_store.cc#newcode100 base/prefs/testing_pref_store.cc:100: if (read_success_ && read_error_ != PREF_READ_ERROR_NONE && error_delegate_) On ...
6 years, 8 months ago (2014-03-28 12:32:52 UTC) #5
erikwright (departed)
PTAL. https://codereview.chromium.org/210063003/diff/140001/base/prefs/testing_pref_store.cc File base/prefs/testing_pref_store.cc (right): https://codereview.chromium.org/210063003/diff/140001/base/prefs/testing_pref_store.cc#newcode100 base/prefs/testing_pref_store.cc:100: if (read_success_ && read_error_ != PREF_READ_ERROR_NONE && error_delegate_) ...
6 years, 8 months ago (2014-03-28 12:49:55 UTC) #6
Mattias Nissler (ping if slow)
LGTM https://codereview.chromium.org/210063003/diff/140001/base/prefs/testing_pref_store.cc File base/prefs/testing_pref_store.cc (right): https://codereview.chromium.org/210063003/diff/140001/base/prefs/testing_pref_store.cc#newcode100 base/prefs/testing_pref_store.cc:100: if (read_success_ && read_error_ != PREF_READ_ERROR_NONE && error_delegate_) ...
6 years, 8 months ago (2014-03-28 12:57:41 UTC) #7
erikwright (departed)
The CQ bit was checked by erikwright@chromium.org
6 years, 8 months ago (2014-03-28 12:58:27 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erikwright@chromium.org/210063003/150001
6 years, 8 months ago (2014-03-28 12:59:22 UTC) #9
erikwright (departed)
6 years, 8 months ago (2014-03-28 16:17:49 UTC) #10
Message was sent while issue was closed.
Committed patchset #8 manually as r260150 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698