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

Issue 1055313002: Added mock_xhr module w/ unit tests. (Closed)

Created:
5 years, 8 months ago by John Williams
Modified:
5 years, 8 months ago
Reviewers:
Jamie, 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

Added mock_xhr module w/ unit tests. Also ported gcd_client_unittests to use mock_xhr as a proof of concept, but left original test as a supplement to xhr_unittests. BUG=471928 Committed: https://crrev.com/58e816f05221d24de6fe1d31dfaf22f08475d168 Cr-Commit-Position: refs/heads/master@{#324095}

Patch Set 1 #

Patch Set 2 : #

Total comments: 48

Patch Set 3 : for review #

Total comments: 2

Patch Set 4 : for re-review #

Total comments: 2

Patch Set 5 : #

Total comments: 2

Patch Set 6 : #

Patch Set 7 : merge #

Patch Set 8 : #

Patch Set 9 : for submit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+727 lines, -37 lines) Patch
M remoting/remoting_webapp_files.gypi View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M remoting/webapp/base/js/base.js View 1 chunk +22 lines, -0 lines 0 comments Download
M remoting/webapp/base/js/base_unittest.js View 1 2 1 chunk +47 lines, -0 lines 0 comments Download
A remoting/webapp/crd/js/gcd_client_with_mock_xhr_unittest.js View 1 2 3 1 chunk +135 lines, -0 lines 0 comments Download
A remoting/webapp/crd/js/mock_xhr.js View 1 2 3 4 5 6 7 1 chunk +309 lines, -0 lines 0 comments Download
A remoting/webapp/crd/js/mock_xhr_unittest.js View 1 2 1 chunk +171 lines, -0 lines 0 comments Download
M remoting/webapp/crd/js/xhr.js View 9 chunks +40 lines, -37 lines 0 comments Download

Messages

Total messages: 18 (6 generated)
John Williams
New mock class in preparation for writing unit tests for host_controller. https://codereview.chromium.org/1055313002/diff/20001/remoting/webapp/base/js/base.js File remoting/webapp/base/js/base.js (right): ...
5 years, 8 months ago (2015-04-02 23:57:06 UTC) #2
Jamie
Thanks for the code-review comments; they really helped with reviewing this. https://codereview.chromium.org/1055313002/diff/20001/remoting/webapp/base/js/base.js File remoting/webapp/base/js/base.js (right): ...
5 years, 8 months ago (2015-04-03 01:45:58 UTC) #3
kelvinp
https://codereview.chromium.org/1055313002/diff/40001/remoting/webapp/crd/js/gcd_client_with_mock_xhr_unittest.js File remoting/webapp/crd/js/gcd_client_with_mock_xhr_unittest.js (right): https://codereview.chromium.org/1055313002/diff/40001/remoting/webapp/crd/js/gcd_client_with_mock_xhr_unittest.js#newcode41 remoting/webapp/crd/js/gcd_client_with_mock_xhr_unittest.js:41: setup: function() { use beforeEach and afterEach. See https://api.qunitjs.com/QUnit.module/
5 years, 8 months ago (2015-04-03 18:34:23 UTC) #4
John Williams
https://codereview.chromium.org/1055313002/diff/20001/remoting/webapp/base/js/base.js File remoting/webapp/base/js/base.js (right): https://codereview.chromium.org/1055313002/diff/20001/remoting/webapp/base/js/base.js#newcode231 remoting/webapp/base/js/base.js:231: if (value != null) { On 2015/04/03 01:45:56, Jamie ...
5 years, 8 months ago (2015-04-04 01:40:27 UTC) #5
Jamie
https://codereview.chromium.org/1055313002/diff/20001/remoting/webapp/crd/js/mock_xhr.js File remoting/webapp/crd/js/mock_xhr.js (right): https://codereview.chromium.org/1055313002/diff/20001/remoting/webapp/crd/js/mock_xhr.js#newcode1 remoting/webapp/crd/js/mock_xhr.js:1: // Copyright (c) 2015 The Chromium Authors. All rights ...
5 years, 8 months ago (2015-04-06 19:24:04 UTC) #6
John Williams
https://codereview.chromium.org/1055313002/diff/20001/remoting/webapp/crd/js/mock_xhr.js File remoting/webapp/crd/js/mock_xhr.js (right): https://codereview.chromium.org/1055313002/diff/20001/remoting/webapp/crd/js/mock_xhr.js#newcode49 remoting/webapp/crd/js/mock_xhr.js:49: base.copyWithoutNullFields(params.formContent), On 2015/04/06 19:24:03, Jamie wrote: > On 2015/04/04 ...
5 years, 8 months ago (2015-04-06 23:46:13 UTC) #7
Jamie
lgtm https://codereview.chromium.org/1055313002/diff/80001/remoting/webapp/crd/js/mock_xhr.js File remoting/webapp/crd/js/mock_xhr.js (right): https://codereview.chromium.org/1055313002/diff/80001/remoting/webapp/crd/js/mock_xhr.js#newcode149 remoting/webapp/crd/js/mock_xhr.js:149: * The original value of the remoting.MockXhr constructor. ...
5 years, 8 months ago (2015-04-07 00:27:09 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1055313002/120001
5 years, 8 months ago (2015-04-07 00:48:50 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/54429)
5 years, 8 months ago (2015-04-07 00:59:27 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1055313002/160001
5 years, 8 months ago (2015-04-07 19:06:04 UTC) #16
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 8 months ago (2015-04-07 19:59:33 UTC) #17
commit-bot: I haz the power
5 years, 8 months ago (2015-04-07 20:00:21 UTC) #18
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/58e816f05221d24de6fe1d31dfaf22f08475d168
Cr-Commit-Position: refs/heads/master@{#324095}

Powered by Google App Engine
This is Rietveld 408576698