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

Issue 840023004: Implement mocks for identity and host-list, add a browser test to test the app in various failure m… (Closed)

Created:
5 years, 11 months ago by Jamie
Modified:
5 years, 11 months ago
Reviewers:
kelvinp
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

Implement mocks for identity and host-list, add a browser test to test the app in various failure modes. * Minor refactoring of RemoteDesktopBrowerTest to better support deferred-start tests without needing them to duplicate too much code. * Added some JavaScript helper functions. * Interfacified the host-list and OAuth REST APIs, and added mocks. * Added a mock for the chrome.identity API. * Added a (partial, due to bugs that I'll fix separately) browser test to check the behaviour of the app in various failure modes. Note that the first two items could conceivably be a separate CL, since they're likely to be useful independently of this CL. LMK if you'd like me to split it. Committed: https://crrev.com/499b99a8ba2d7f4f2e78e75f70c583e78b6a01d0 Cr-Commit-Position: refs/heads/master@{#310885}

Patch Set 1 #

Patch Set 2 : Added missing file. #

Total comments: 19

Patch Set 3 : Reviewer feedback + rebase. #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+558 lines, -241 lines) Patch
M chrome/chrome_tests.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/remoting/remote_desktop_browsertest.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/test/remoting/remote_desktop_browsertest.cc View 1 2 2 chunks +13 lines, -1 line 0 comments Download
A chrome/test/remoting/unauthenticated_browsertest.cc View 1 2 1 chunk +24 lines, -0 lines 0 comments Download
M remoting/remoting_webapp_files.gypi View 3 chunks +7 lines, -0 lines 0 comments Download
M remoting/webapp/browser_test/browser_test.js View 3 chunks +3 lines, -9 lines 0 comments Download
A remoting/webapp/browser_test/mock_host_list_api.js View 1 chunk +109 lines, -0 lines 0 comments Download
A remoting/webapp/browser_test/mock_identity.js View 1 chunk +110 lines, -0 lines 0 comments Download
A remoting/webapp/browser_test/mock_oauth2_api.js View 1 2 1 chunk +92 lines, -0 lines 0 comments Download
A remoting/webapp/browser_test/timeout_waiter.js View 1 2 1 chunk +90 lines, -0 lines 0 comments Download
A remoting/webapp/browser_test/unauthenticated_browser_test.js View 1 2 1 chunk +69 lines, -0 lines 0 comments Download
M remoting/webapp/crd/js/host_list_api.js View 5 chunks +2 lines, -71 lines 0 comments Download
A + remoting/webapp/crd/js/host_list_api_impl.js View 6 chunks +10 lines, -7 lines 0 comments Download
M remoting/webapp/crd/js/oauth2_api.js View 5 chunks +5 lines, -143 lines 0 comments Download
A + remoting/webapp/crd/js/oauth2_api_impl.js View 7 chunks +14 lines, -10 lines 0 comments Download
M remoting/webapp/js_proto/dom_proto.js View 1 2 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
Jamie
ptal https://codereview.chromium.org/840023004/diff/20001/remoting/webapp/crd/js/oauth2_api.js File remoting/webapp/crd/js/oauth2_api.js (right): https://codereview.chromium.org/840023004/diff/20001/remoting/webapp/crd/js/oauth2_api.js#newcode58 remoting/webapp/crd/js/oauth2_api.js:58: * to match remoting.HostListApi. I don't want to ...
5 years, 11 months ago (2015-01-08 18:57:19 UTC) #3
Jamie
ptal
5 years, 11 months ago (2015-01-08 18:57:19 UTC) #4
kelvinp
https://codereview.chromium.org/840023004/diff/20001/chrome/test/remoting/remote_desktop_browsertest.cc File chrome/test/remoting/remote_desktop_browsertest.cc (right): https://codereview.chromium.org/840023004/diff/20001/chrome/test/remoting/remote_desktop_browsertest.cc#newcode455 chrome/test/remoting/remote_desktop_browsertest.cc:455: content::WebContents* content = app_web_content(); As per your suggestion in ...
5 years, 11 months ago (2015-01-08 22:54:41 UTC) #5
Jamie
ptal https://codereview.chromium.org/840023004/diff/20001/chrome/test/remoting/remote_desktop_browsertest.cc File chrome/test/remoting/remote_desktop_browsertest.cc (right): https://codereview.chromium.org/840023004/diff/20001/chrome/test/remoting/remote_desktop_browsertest.cc#newcode455 chrome/test/remoting/remote_desktop_browsertest.cc:455: content::WebContents* content = app_web_content(); On 2015/01/08 22:54:40, kelvinp ...
5 years, 11 months ago (2015-01-08 23:43:09 UTC) #6
kelvinp
lgtm
5 years, 11 months ago (2015-01-09 19:23:36 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/840023004/60001
5 years, 11 months ago (2015-01-09 22:10:48 UTC) #9
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 11 months ago (2015-01-09 23:19:46 UTC) #10
commit-bot: I haz the power
5 years, 11 months ago (2015-01-09 23:20:43 UTC) #11
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/499b99a8ba2d7f4f2e78e75f70c583e78b6a01d0
Cr-Commit-Position: refs/heads/master@{#310885}

Powered by Google App Engine
This is Rietveld 408576698