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

Issue 9348022: [cros] Use mocked URLFetcher and other mocks in ExistingUserController tests. (Closed)

Created:
8 years, 10 months ago by Nikita (slow)
Modified:
8 years, 9 months ago
Reviewers:
satorux1, Ivan Korotkov
CC:
chromium-reviews, darin-cc_chromium.org, cbentzel+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

[cros] Use mocked URLFetcher and other mocks in ExistingUserController tests. * Add MockLoginUtils + DoLaunchBrowser is not a static method any more. * Add MockUserManager * Added few missing basic expectation in MockDBusThreadManager Renaming of virtual getters/setters is done in http://codereview.chromium.org/9355059/ BUG=chromium-os:25926 TEST=ExistingUserController.ExistingUserLogin Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=125165

Patch Set 1 #

Patch Set 2 : mocks and ExistingUserLogin test working #

Patch Set 3 : retry #

Patch Set 4 : complete mock for LoginUtils, fix EUC tests. #

Patch Set 5 : fix TestLoginUtils #

Patch Set 6 : + OVERRIDE #

Patch Set 7 : dtor + test fix #

Patch Set 8 : simplify CL #

Patch Set 9 : fix #

Total comments: 12

Patch Set 10 : review #

Patch Set 11 : extract constants #

Patch Set 12 : fix OnChecked #

Patch Set 13 : move #

Unified diffs Side-by-side diffs Delta from patch set Stats (+628 lines, -1735 lines) Patch
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/dbus/mock_dbus_thread_manager.cc View 1 2 3 4 5 6 7 8 9 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller_browsertest.cc View 1 2 3 4 5 6 7 8 9 8 chunks +119 lines, -39 lines 0 comments Download
M chrome/browser/chromeos/login/login_display.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/login_performer.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/login_utils.h View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/login/login_utils.cc View 1 2 3 4 5 6 7 8 9 3 chunks +41 lines, -40 lines 0 comments Download
M chrome/browser/chromeos/login/mock_authenticator.h View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/login/mock_authenticator.cc View 1 2 3 4 5 6 7 8 9 3 chunks +11 lines, -10 lines 0 comments Download
A chrome/browser/chromeos/login/mock_login_utils.h View 1 2 3 4 5 6 7 8 9 1 chunk +56 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/login/mock_login_utils.cc View 1 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/mock_user_manager.h View 1 2 3 4 5 6 7 8 9 2 chunks +33 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/online_attempt_unittest.cc View 1 2 3 4 5 6 7 8 9 5 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/login/parallel_authenticator_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/user.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
chrome/browser/chromeos/login/user_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +70 lines, -227 lines 0 comments Download
M chrome/browser/chromeos/login/user_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +38 lines, -1031 lines 0 comments Download
A + chrome/browser/chromeos/login/user_manager_impl.h View 1 2 3 4 5 6 7 8 9 5 chunks +56 lines, -140 lines 0 comments Download
A + chrome/browser/chromeos/login/user_manager_impl.cc View 1 2 3 4 5 6 7 8 9 10 35 chunks +125 lines, -129 lines 0 comments Download
M chrome/browser/chromeos/login/wizard_controller.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/login/wizard_controller_browsertest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/signin/token_service_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +7 lines, -5 lines 0 comments Download
D chrome/common/net/gaia/gaia_auth_fetcher_unittest.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -71 lines 0 comments Download
M chrome/common/net/gaia/gaia_auth_fetcher_unittest.cc View 1 2 3 4 5 6 7 8 9 4 chunks +3 lines, -4 lines 0 comments Download
A + chrome/common/net/gaia/mock_url_fetcher_factory.h View 1 2 3 4 5 6 7 8 9 3 chunks +8 lines, -8 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Nikita (slow)
8 years, 10 months ago (2012-02-07 18:10:14 UTC) #1
Nikita (slow)
ivankr > please review whole CL as it is mostly around UserManager / LoginUtils mocks. ...
8 years, 10 months ago (2012-02-20 14:53:54 UTC) #2
satorux1
This patch is fairly big. I think it'd be nice to split, if possible. Anyway, ...
8 years, 10 months ago (2012-02-20 17:54:47 UTC) #3
Nikita (slow)
On 2012/02/20 17:54:47, satorux1 wrote: > This patch is fairly big. I think it'd be ...
8 years, 10 months ago (2012-02-20 18:21:45 UTC) #4
satorux1
On 2012/02/20 18:21:45, Nikita Kostylev wrote: > On 2012/02/20 17:54:47, satorux1 wrote: > > This ...
8 years, 10 months ago (2012-02-20 20:31:30 UTC) #5
Nikita (slow)
On 2012/02/20 20:31:30, satorux1 wrote: > On 2012/02/20 18:21:45, Nikita Kostylev wrote: > > On ...
8 years, 10 months ago (2012-02-21 10:21:02 UTC) #6
Nikita (slow)
trybots http://build.chromium.org/p/tryserver.chromium/builders/linux_chromeos_clang/builds/147 http://build.chromium.org/p/tryserver.chromium/builders/linux_chromeos/builds/901
8 years, 10 months ago (2012-02-21 17:21:05 UTC) #7
Ivan Korotkov
LGTM with nits: http://codereview.chromium.org/9348022/diff/3068/chrome/browser/chromeos/login/existing_user_controller_browsertest.cc File chrome/browser/chromeos/login/existing_user_controller_browsertest.cc (right): http://codereview.chromium.org/9348022/diff/3068/chrome/browser/chromeos/login/existing_user_controller_browsertest.cc#newcode112 chrome/browser/chromeos/login/existing_user_controller_browsertest.cc:112: testing_profile_.reset(NULL); Why do you need this? ...
8 years, 10 months ago (2012-02-22 17:16:35 UTC) #8
satorux1
chrome/browser/chromeos/dbus/ still LGTM
8 years, 10 months ago (2012-02-22 19:30:05 UTC) #9
Nikita (slow)
http://codereview.chromium.org/9348022/diff/3068/chrome/browser/chromeos/login/existing_user_controller_browsertest.cc File chrome/browser/chromeos/login/existing_user_controller_browsertest.cc (right): http://codereview.chromium.org/9348022/diff/3068/chrome/browser/chromeos/login/existing_user_controller_browsertest.cc#newcode112 chrome/browser/chromeos/login/existing_user_controller_browsertest.cc:112: testing_profile_.reset(NULL); On 2012/02/22 17:16:35, Ivan Korotkov wrote: > Why ...
8 years, 9 months ago (2012-03-05 14:42:36 UTC) #10
Ivan Korotkov
LGTM http://codereview.chromium.org/9348022/diff/3068/chrome/browser/chromeos/login/user_manager.h File chrome/browser/chromeos/login/user_manager.h (right): http://codereview.chromium.org/9348022/diff/3068/chrome/browser/chromeos/login/user_manager.h#newcode361 chrome/browser/chromeos/login/user_manager.h:361: class UserManagerImplWrapper { On 2012/03/05 14:42:36, Nikita Kostylev ...
8 years, 9 months ago (2012-03-05 14:52:24 UTC) #11
Nikita (slow)
http://codereview.chromium.org/9348022/diff/3068/chrome/browser/chromeos/login/user_manager.h File chrome/browser/chromeos/login/user_manager.h (right): http://codereview.chromium.org/9348022/diff/3068/chrome/browser/chromeos/login/user_manager.h#newcode361 chrome/browser/chromeos/login/user_manager.h:361: class UserManagerImplWrapper { On 2012/03/05 14:52:24, Ivan Korotkov wrote: ...
8 years, 9 months ago (2012-03-06 15:41:57 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nkostylev@chromium.org/9348022/27002
8 years, 9 months ago (2012-03-06 15:42:23 UTC) #13
commit-bot: I haz the power
Can't process patch for file chrome/browser/chromeos/login/user_manager.h. File's status is None, patchset upload is incomplete.
8 years, 9 months ago (2012-03-06 15:42:24 UTC) #14
Nikita (slow)
8 years, 9 months ago (2012-03-06 15:43:39 UTC) #15
Pushing manually. All patchets are failing to upload for this CL fully.

Powered by Google App Engine
This is Rietveld 408576698