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

Issue 552403004: Interfaceify ClientPlugin in preparation for mocking it. (Closed)

Created:
6 years, 3 months ago by Jamie
Modified:
6 years, 3 months ago
Reviewers:
Sergey Ulanov
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Interfaceify ClientPlugin in preparation for mocking it. Various browser tests currently have to make a connection to a host in order to test features that only make sense in that context (eg, bump-scroll). These tests would be more robust if the we could mock the client plugin so that a real connection isn't needed. For the most part, I've changed only what I had to to make it possible to mock these classes; there's a lot more clean-up that could be done, but I don't want to make it hard to merge things back into trunk. Committed: https://crrev.com/611d14ec5320ddee23aff092bafa9536ec6f2b83 Cr-Commit-Position: refs/heads/master@{#296001}

Patch Set 1 #

Patch Set 2 : Made plugin factory a static member of ClientSession so it can be overridden before an instance is … #

Patch Set 3 : Interfaceify more classes. #

Total comments: 10

Patch Set 4 : Reviewer feedback. #

Patch Set 5 : Renamed interfaces. #

Total comments: 11
Unified diffs Side-by-side diffs Delta from patch set Stats (+585 lines, -1405 lines) Patch
M remoting/remoting_webapp_files.gypi View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M remoting/webapp/client_plugin.js View 1 2 3 4 4 chunks +200 lines, -709 lines 5 comments Download
A + remoting/webapp/client_plugin_impl.js View 1 2 3 4 36 chunks +263 lines, -117 lines 1 comment Download
M remoting/webapp/client_screen.js View 1 2 3 4 4 chunks +6 lines, -5 lines 0 comments Download
M remoting/webapp/client_session.js View 1 2 3 4 10 chunks +36 lines, -35 lines 0 comments Download
M remoting/webapp/remoting.js View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M remoting/webapp/session_connector.js View 1 2 3 4 5 chunks +27 lines, -509 lines 2 comments Download
A + remoting/webapp/session_connector_impl.js View 1 2 3 4 18 chunks +47 lines, -29 lines 3 comments Download

Messages

Total messages: 16 (4 generated)
Jamie
ptal
6 years, 3 months ago (2014-09-12 23:40:38 UTC) #2
Jamie
Ping.
6 years, 3 months ago (2014-09-15 21:35:47 UTC) #3
Sergey Ulanov
https://codereview.chromium.org/552403004/diff/40001/remoting/webapp/client_plugin_interface.js File remoting/webapp/client_plugin_interface.js (right): https://codereview.chromium.org/552403004/diff/40001/remoting/webapp/client_plugin_interface.js#newcode1 remoting/webapp/client_plugin_interface.js:1: // Copyright (c) 2012 The Chromium Authors. All rights ...
6 years, 3 months ago (2014-09-16 02:02:51 UTC) #4
Jamie
ptal https://codereview.chromium.org/552403004/diff/40001/remoting/webapp/client_plugin_interface.js File remoting/webapp/client_plugin_interface.js (right): https://codereview.chromium.org/552403004/diff/40001/remoting/webapp/client_plugin_interface.js#newcode1 remoting/webapp/client_plugin_interface.js:1: // Copyright (c) 2012 The Chromium Authors. All ...
6 years, 3 months ago (2014-09-16 16:23:21 UTC) #5
Jamie
PTAL. I've renamed the interfaces and files as suggested. Since the review tool doesn't do ...
6 years, 3 months ago (2014-09-19 23:55:44 UTC) #6
Sergey Ulanov
lgtm https://codereview.chromium.org/552403004/diff/80001/remoting/webapp/client_plugin.js File remoting/webapp/client_plugin.js (right): https://codereview.chromium.org/552403004/diff/80001/remoting/webapp/client_plugin.js#newcode1 remoting/webapp/client_plugin.js:1: // Copyright 2014 The Chromium Authors. All rights ...
6 years, 3 months ago (2014-09-20 00:35:25 UTC) #7
Jamie
FYI. I've left the dates as-is, since I think the age of a file should ...
6 years, 3 months ago (2014-09-20 00:54:22 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/552403004/80001
6 years, 3 months ago (2014-09-20 00:54:54 UTC) #10
commit-bot: I haz the power
Exceeded time limit waiting for builds to trigger.
6 years, 3 months ago (2014-09-20 02:56:20 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/552403004/80001
6 years, 3 months ago (2014-09-22 17:07:47 UTC) #14
commit-bot: I haz the power
Committed patchset #5 (id:80001) as b3f57fb7f8376de68c097aba29034bc4550ac39a
6 years, 3 months ago (2014-09-22 17:08:52 UTC) #15
commit-bot: I haz the power
6 years, 3 months ago (2014-09-22 17:09:36 UTC) #16
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/611d14ec5320ddee23aff092bafa9536ec6f2b83
Cr-Commit-Position: refs/heads/master@{#296001}

Powered by Google App Engine
This is Rietveld 408576698