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

Issue 880273006: Adding the AccessTokenFetcher and Environment class to the app remoting test (Closed)

Created:
5 years, 10 months ago by joedow
Modified:
5 years, 9 months ago
Reviewers:
joedow1, Jamie, Wez
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adding the AccessTokenFetcher and Environment class to the app remoting test driver along with unit tests. In this change, the test driver can now call GAIA and retrieve an access and refresh token given an authorization code. It can then store the refresh token locally and retrieve it on subsequent tool runs. BUG= Committed: https://crrev.com/ea77cec75493f936518fed723dcd6c371ad564d6 Cr-Commit-Position: refs/heads/master@{#318137}

Patch Set 1 #

Patch Set 2 : Fixing some lint/readability errors #

Total comments: 213

Patch Set 3 : Addressing Wez's feedback #

Patch Set 4 : Updating AccessTokenFetcher Unittests to use the FakeURLFetcherFactory #

Total comments: 70

Patch Set 5 : Addressing last round of CR feedback #

Total comments: 18

Patch Set 6 : Addressing CR feedback #

Total comments: 10

Patch Set 7 : CR feedback #

Total comments: 1

Patch Set 8 : Fixing final nit! #

Patch Set 9 : Fixing vector initializer list syntax which was causing build failures on non C++11 compilers #

Patch Set 10 : Fixing a Win platform only build issue. #

Patch Set 11 : Fixing one last windows compile issue #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1805 lines, -5 lines) Patch
M remoting/app_remoting_test.gyp View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M remoting/remoting_test.gypi View 1 2 3 4 5 6 7 3 chunks +7 lines, -0 lines 0 comments Download
A remoting/test/access_token_fetcher.h View 1 2 3 4 1 chunk +86 lines, -0 lines 0 comments Download
A remoting/test/access_token_fetcher.cc View 1 2 3 4 5 6 7 8 1 chunk +210 lines, -0 lines 0 comments Download
A remoting/test/access_token_fetcher_unittest.cc View 1 2 3 4 1 chunk +448 lines, -0 lines 0 comments Download
M remoting/test/app_remoting_test_driver.cc View 1 2 3 chunks +68 lines, -5 lines 0 comments Download
A remoting/test/app_remoting_test_driver_environment.h View 1 2 3 4 5 1 chunk +85 lines, -0 lines 0 comments Download
A remoting/test/app_remoting_test_driver_environment.cc View 1 2 3 4 5 6 7 8 9 1 chunk +181 lines, -0 lines 0 comments Download
A remoting/test/app_remoting_test_driver_environment_unittest.cc View 1 2 3 4 5 6 1 chunk +368 lines, -0 lines 0 comments Download
A remoting/test/fake_access_token_fetcher.h View 1 2 3 4 5 6 1 chunk +55 lines, -0 lines 0 comments Download
A remoting/test/fake_access_token_fetcher.cc View 1 2 3 4 1 chunk +42 lines, -0 lines 0 comments Download
A remoting/test/mock_access_token_fetcher.h View 1 2 3 4 5 6 1 chunk +46 lines, -0 lines 0 comments Download
A remoting/test/mock_access_token_fetcher.cc View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A remoting/test/refresh_token_store.h View 1 2 3 4 5 6 1 chunk +33 lines, -0 lines 0 comments Download
A remoting/test/refresh_token_store.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +139 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (11 generated)
joedow
Hi guys, Here is my second change list for the Remoting Test Driver. In this ...
5 years, 10 months ago (2015-02-10 01:32:33 UTC) #2
joedow
Fixing a few lint errors, no major updates in this patch set.
5 years, 10 months ago (2015-02-10 02:09:15 UTC) #3
Wez
On 2015/02/10 02:09:15, joedow wrote: > Fixing a few lint errors, no major updates in ...
5 years, 10 months ago (2015-02-12 22:03:40 UTC) #4
Wez
https://codereview.chromium.org/880273006/diff/20001/remoting/test/access_token_fetcher.cc File remoting/test/access_token_fetcher.cc (right): https://codereview.chromium.org/880273006/diff/20001/remoting/test/access_token_fetcher.cc#newcode25 remoting/test/access_token_fetcher.cc:25: using net::URLRequestContextGetter; nit: We rarely use using, and it ...
5 years, 10 months ago (2015-02-13 03:01:55 UTC) #5
joedow
Addressing Wez's feedback. Beyond that, the big change was to move the mock GaiaOAuthClient class ...
5 years, 10 months ago (2015-02-14 02:31:29 UTC) #6
joedow
Updated the AccessTokenFetcher unittests to use a FakeURLFetcherFactory per guidance from a GaiaOAuthClient developer.
5 years, 10 months ago (2015-02-18 01:58:03 UTC) #7
Wez
https://codereview.chromium.org/880273006/diff/20001/remoting/test/access_token_fetcher.h File remoting/test/access_token_fetcher.h (right): https://codereview.chromium.org/880273006/diff/20001/remoting/test/access_token_fetcher.h#newcode120 remoting/test/access_token_fetcher.h:120: std::string access_token_; On 2015/02/14 02:31:26, joedow wrote: > On ...
5 years, 10 months ago (2015-02-19 22:00:24 UTC) #8
joedow
Addressed wez's feedback, PTAL. Thanks, Joe https://codereview.chromium.org/880273006/diff/60001/remoting/test/access_token_fetcher.cc File remoting/test/access_token_fetcher.cc (right): https://codereview.chromium.org/880273006/diff/60001/remoting/test/access_token_fetcher.cc#newcode49 remoting/test/access_token_fetcher.cc:49: DCHECK(!callback.is_null()); On 2015/02/19 ...
5 years, 10 months ago (2015-02-20 02:58:37 UTC) #9
Wez
https://codereview.chromium.org/880273006/diff/60001/remoting/test/access_token_fetcher.cc File remoting/test/access_token_fetcher.cc (right): https://codereview.chromium.org/880273006/diff/60001/remoting/test/access_token_fetcher.cc#newcode102 remoting/test/access_token_fetcher.cc:102: auth_client_.reset(new gaia::GaiaOAuthClient(request_context_getter.get())); On 2015/02/20 02:58:35, joedow wrote: > On ...
5 years, 10 months ago (2015-02-23 20:17:15 UTC) #10
joedow
https://codereview.chromium.org/880273006/diff/80001/remoting/test/app_remoting_test_driver_environment_unittest.cc File remoting/test/app_remoting_test_driver_environment_unittest.cc (right): https://codereview.chromium.org/880273006/diff/80001/remoting/test/app_remoting_test_driver_environment_unittest.cc#newcode65 remoting/test/app_remoting_test_driver_environment_unittest.cc:65: class AppRemotingTestDriverEnvironmentUnittestHelper { On 2015/02/23 20:17:14, Wez wrote: > ...
5 years, 10 months ago (2015-02-24 02:01:25 UTC) #11
Wez
https://codereview.chromium.org/880273006/diff/80001/remoting/test/fake_access_token_fetcher.h File remoting/test/fake_access_token_fetcher.h (right): https://codereview.chromium.org/880273006/diff/80001/remoting/test/fake_access_token_fetcher.h#newcode35 remoting/test/fake_access_token_fetcher.h:35: void SetAuthCodeError(bool fail) { On 2015/02/24 02:01:24, joedow wrote: ...
5 years, 10 months ago (2015-02-24 03:10:19 UTC) #12
joedow1
https://codereview.chromium.org/880273006/diff/80001/remoting/test/fake_access_token_fetcher.h File remoting/test/fake_access_token_fetcher.h (right): https://codereview.chromium.org/880273006/diff/80001/remoting/test/fake_access_token_fetcher.h#newcode35 remoting/test/fake_access_token_fetcher.h:35: void SetAuthCodeError(bool fail) { On 2015/02/24 03:10:19, Wez wrote: ...
5 years, 10 months ago (2015-02-24 05:17:41 UTC) #14
Wez
LGTM w/ the comment below addressed! https://codereview.chromium.org/880273006/diff/120001/remoting/test/refresh_token_store.cc File remoting/test/refresh_token_store.cc (right): https://codereview.chromium.org/880273006/diff/120001/remoting/test/refresh_token_store.cc#newcode46 remoting/test/refresh_token_store.cc:46: std::string user_name_; DISALLOW_COPY_AND_ASSIGN
5 years, 9 months ago (2015-02-25 03:53:43 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/880273006/140001
5 years, 9 months ago (2015-02-25 19:31:42 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/880273006/160001
5 years, 9 months ago (2015-02-25 20:19:56 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/880273006/180001
5 years, 9 months ago (2015-02-25 21:15:38 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/880273006/200001
5 years, 9 months ago (2015-02-25 22:10:11 UTC) #28
commit-bot: I haz the power
Committed patchset #11 (id:200001)
5 years, 9 months ago (2015-02-25 23:13:24 UTC) #29
commit-bot: I haz the power
5 years, 9 months ago (2015-02-25 23:14:05 UTC) #30
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/ea77cec75493f936518fed723dcd6c371ad564d6
Cr-Commit-Position: refs/heads/master@{#318137}

Powered by Google App Engine
This is Rietveld 408576698