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

Issue 2850103002: Settings reset prompt: Add a test for the default settings fetcher. (Closed)

Created:
3 years, 7 months ago by alito
Modified:
3 years, 7 months ago
Reviewers:
robertshield, csharp
CC:
chromium-reviews, grt+watch_chromium.org, vakh+watch_chromium.org, timvolodine, alito+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Settings reset prompt: Add a unit test for the default settings fetcher. The test ensures that DefaultSettingsFetcher never returns null even when fetching default settings fails. BUG=716372 Review-Url: https://codereview.chromium.org/2850103002 Cr-Commit-Position: refs/heads/master@{#468424} Committed: https://chromium.googlesource.com/chromium/src/+/45aeaf16b7bcce4ea13a322b3960ff1f4f3602b0

Patch Set 1 : Move DefaultSettingsFetcher to its own file #

Patch Set 2 : Add a test to ensure default settings fetcher never returns null #

Total comments: 2

Patch Set 3 : Nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+232 lines, -103 lines) Patch
M chrome/browser/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/browser/safe_browsing/settings_reset_prompt/default_settings_fetcher.h View 1 2 1 chunk +64 lines, -0 lines 0 comments Download
A chrome/browser/safe_browsing/settings_reset_prompt/default_settings_fetcher.cc View 1 1 chunk +95 lines, -0 lines 0 comments Download
A chrome/browser/safe_browsing/settings_reset_prompt/default_settings_fetcher_browsertest.cc View 1 1 chunk +69 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_model.cc View 3 chunks +1 line, -103 lines 0 comments Download
M chrome/test/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 18 (10 generated)
alito
I've used a convenient way to inject fetching of default settings for testing. PTAL!
3 years, 7 months ago (2017-05-01 18:13:19 UTC) #6
csharp
lgtm https://codereview.chromium.org/2850103002/diff/80001/chrome/browser/safe_browsing/settings_reset_prompt/default_settings_fetcher.h File chrome/browser/safe_browsing/settings_reset_prompt/default_settings_fetcher.h (right): https://codereview.chromium.org/2850103002/diff/80001/chrome/browser/safe_browsing/settings_reset_prompt/default_settings_fetcher.h#newcode26 chrome/browser/safe_browsing/settings_reset_prompt/default_settings_fetcher.h:26: // |BrandcodedDefaultSettings| object to |callback| on the UI ...
3 years, 7 months ago (2017-05-01 19:11:37 UTC) #7
alito
Thanks Chris. Robert? https://codereview.chromium.org/2850103002/diff/80001/chrome/browser/safe_browsing/settings_reset_prompt/default_settings_fetcher.h File chrome/browser/safe_browsing/settings_reset_prompt/default_settings_fetcher.h (right): https://codereview.chromium.org/2850103002/diff/80001/chrome/browser/safe_browsing/settings_reset_prompt/default_settings_fetcher.h#newcode26 chrome/browser/safe_browsing/settings_reset_prompt/default_settings_fetcher.h:26: // |BrandcodedDefaultSettings| object to |callback| on ...
3 years, 7 months ago (2017-05-01 19:18:19 UTC) #8
robertshield
quick thought pre-review: add bug number?
3 years, 7 months ago (2017-05-01 19:29:14 UTC) #9
alito
On 2017/05/01 19:29:14, robertshield wrote: > quick thought pre-review: add bug number? Bug number added.
3 years, 7 months ago (2017-05-01 19:30:12 UTC) #11
robertshield
lgtm
3 years, 7 months ago (2017-05-01 19:33:08 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2850103002/100001
3 years, 7 months ago (2017-05-01 19:42:20 UTC) #15
commit-bot: I haz the power
3 years, 7 months ago (2017-05-01 21:42:32 UTC) #18
Message was sent while issue was closed.
Committed patchset #3 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/45aeaf16b7bcce4ea13a322b3960...

Powered by Google App Engine
This is Rietveld 408576698