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

Issue 1134533007: Fixed AppListServceUnitTest so it tests what it says it's testing. (Closed)

Created:
5 years, 7 months ago by Matt Giuca
Modified:
5 years, 7 months ago
Reviewers:
Bernhard Bauer, tapted
CC:
chromium-reviews, tfarina, Matt Giuca, Mike Lerman, Bernhard Bauer
Base URL:
https://chromium.googlesource.com/chromium/src.git@bauerb-profiles-ephemeral
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixed AppListServceUnitTest so it tests what it says it's testing. FakeProfileStore now returns the real kProfileLastUsed (from the pref store), instead of a dummy value. This means that tests for code that sets or manipulates the kProfileLastUsed pref will behave correctly. AppListServceUnitTest.RemovedProfileResetsToInitialProfile now properly tests the behaviour of RemoveProfile (that it clears kAppListProfile, and that GetProfilePath returns the initial profile when kAppListProfile is missing). Previously, it did not distinguish between the initial and last used profiles. AppListServiceUnitTest.RemovedProfileResetsToLastUsedProfileIfExists also tests that the kAppListProfile has been set correctly. BUG=487951 Committed: https://crrev.com/461a6f002efc93a8763c23c956b99bb1e437c3f6 Cr-Commit-Position: refs/heads/master@{#330319}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove explicit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -12 lines) Patch
M chrome/browser/ui/app_list/app_list_service_unittest.cc View 5 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/ui/app_list/profile_loader_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/app_list/test/fake_profile_store.h View 1 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/app_list/test/fake_profile_store.cc View 2 chunks +12 lines, -4 lines 0 comments Download

Messages

Total messages: 15 (6 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1134533007/1
5 years, 7 months ago (2015-05-15 09:09:04 UTC) #2
Matt Giuca
5 years, 7 months ago (2015-05-15 09:27:44 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 7 months ago (2015-05-15 09:37:12 UTC) #6
tapted
lgtm https://codereview.chromium.org/1134533007/diff/1/chrome/browser/ui/app_list/test/fake_profile_store.h File chrome/browser/ui/app_list/test/fake_profile_store.h (right): https://codereview.chromium.org/1134533007/diff/1/chrome/browser/ui/app_list/test/fake_profile_store.h#newcode18 chrome/browser/ui/app_list/test/fake_profile_store.h:18: explicit FakeProfileStore(const base::FilePath& user_data_dir, nit: explicit not needed ...
5 years, 7 months ago (2015-05-15 09:40:58 UTC) #7
Bernhard Bauer
LGTM, thanks!
5 years, 7 months ago (2015-05-15 15:03:47 UTC) #9
Matt Giuca
https://codereview.chromium.org/1134533007/diff/1/chrome/browser/ui/app_list/test/fake_profile_store.h File chrome/browser/ui/app_list/test/fake_profile_store.h (right): https://codereview.chromium.org/1134533007/diff/1/chrome/browser/ui/app_list/test/fake_profile_store.h#newcode18 chrome/browser/ui/app_list/test/fake_profile_store.h:18: explicit FakeProfileStore(const base::FilePath& user_data_dir, On 2015/05/15 09:40:58, tapted wrote: ...
5 years, 7 months ago (2015-05-18 00:01:38 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1134533007/20001
5 years, 7 months ago (2015-05-18 00:03:37 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 7 months ago (2015-05-18 00:52:33 UTC) #14
commit-bot: I haz the power
5 years, 7 months ago (2015-05-18 11:33:16 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/461a6f002efc93a8763c23c956b99bb1e437c3f6
Cr-Commit-Position: refs/heads/master@{#330319}

Powered by Google App Engine
This is Rietveld 408576698