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

Issue 202293003: Server Request Tests and Mock Promise Enhancements (Closed)

Created:
6 years, 9 months ago by robliao
Modified:
6 years, 9 months ago
Reviewers:
xiyuan, rgustafson, skare_
CC:
chromium-reviews, arv+watch_chromium.org
Visibility:
Public.

Description

Server Request Tests and Mock Promise Enhancements Added some server request tests and improved the mock promise to handle these tests. The Mock Promise now better simulates the full extent of promises. BUG=164227 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=258239

Patch Set 1 #

Total comments: 11

Patch Set 2 : CR Feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -21 lines) Patch
M chrome/browser/resources/google_now/background_unittest.gtestjs View 1 chunk +106 lines, -0 lines 0 comments Download
M chrome/browser/resources/google_now/common_test_util.js View 1 2 chunks +62 lines, -21 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
robliao
6 years, 9 months ago (2014-03-17 20:15:10 UTC) #1
rgustafson
https://codereview.chromium.org/202293003/diff/1/chrome/browser/resources/google_now/background_unittest.gtestjs File chrome/browser/resources/google_now/background_unittest.gtestjs (right): https://codereview.chromium.org/202293003/diff/1/chrome/browser/resources/google_now/background_unittest.gtestjs#newcode69 chrome/browser/resources/google_now/background_unittest.gtestjs:69: this.makeAndRegisterMockApis(['authenticationManager.removeToken']); Just an FYI, 403 being here was a ...
6 years, 9 months ago (2014-03-19 00:24:31 UTC) #2
robliao
https://codereview.chromium.org/202293003/diff/1/chrome/browser/resources/google_now/background_unittest.gtestjs File chrome/browser/resources/google_now/background_unittest.gtestjs (right): https://codereview.chromium.org/202293003/diff/1/chrome/browser/resources/google_now/background_unittest.gtestjs#newcode69 chrome/browser/resources/google_now/background_unittest.gtestjs:69: this.makeAndRegisterMockApis(['authenticationManager.removeToken']); If we're forbidden to accessing this resource, it's ...
6 years, 9 months ago (2014-03-19 00:43:38 UTC) #3
rgustafson
lgtm https://codereview.chromium.org/202293003/diff/1/chrome/browser/resources/google_now/common_test_util.js File chrome/browser/resources/google_now/common_test_util.js (right): https://codereview.chromium.org/202293003/diff/1/chrome/browser/resources/google_now/common_test_util.js#newcode139 chrome/browser/resources/google_now/common_test_util.js:139: if (isThenable(result)) { On 2014/03/19 00:43:39, robliao wrote: ...
6 years, 9 months ago (2014-03-19 23:02:25 UTC) #4
skare_
lgtm https://codereview.chromium.org/202293003/diff/1/chrome/browser/resources/google_now/common_test_util.js File chrome/browser/resources/google_now/common_test_util.js (right): https://codereview.chromium.org/202293003/diff/1/chrome/browser/resources/google_now/common_test_util.js#newcode180 chrome/browser/resources/google_now/common_test_util.js:180: PromisePrototypeObject.resolve = resolve; this is in the scope ...
6 years, 9 months ago (2014-03-19 23:20:23 UTC) #5
robliao
https://codereview.chromium.org/202293003/diff/1/chrome/browser/resources/google_now/common_test_util.js File chrome/browser/resources/google_now/common_test_util.js (right): https://codereview.chromium.org/202293003/diff/1/chrome/browser/resources/google_now/common_test_util.js#newcode139 chrome/browser/resources/google_now/common_test_util.js:139: if (isThenable(result)) { Links will change, so I've added ...
6 years, 9 months ago (2014-03-19 23:34:39 UTC) #6
skare_
https://codereview.chromium.org/202293003/diff/1/chrome/browser/resources/google_now/common_test_util.js File chrome/browser/resources/google_now/common_test_util.js (right): https://codereview.chromium.org/202293003/diff/1/chrome/browser/resources/google_now/common_test_util.js#newcode180 chrome/browser/resources/google_now/common_test_util.js:180: PromisePrototypeObject.resolve = resolve; moving all the callable functions/'api' to ...
6 years, 9 months ago (2014-03-20 00:27:26 UTC) #7
robliao
xiyuan: Please provide owner approval for this CL. Thanks! https://codereview.chromium.org/202293003/diff/1/chrome/browser/resources/google_now/common_test_util.js File chrome/browser/resources/google_now/common_test_util.js (right): https://codereview.chromium.org/202293003/diff/1/chrome/browser/resources/google_now/common_test_util.js#newcode180 chrome/browser/resources/google_now/common_test_util.js:180: ...
6 years, 9 months ago (2014-03-20 00:31:55 UTC) #8
robliao
https://codereview.chromium.org/202293003/diff/1/chrome/browser/resources/google_now/common_test_util.js File chrome/browser/resources/google_now/common_test_util.js (right): https://codereview.chromium.org/202293003/diff/1/chrome/browser/resources/google_now/common_test_util.js#newcode180 chrome/browser/resources/google_now/common_test_util.js:180: PromisePrototypeObject.resolve = resolve; s/do not exist/exist/ On 2014/03/20 00:31:55, ...
6 years, 9 months ago (2014-03-20 00:32:49 UTC) #9
xiyuan
lgtm
6 years, 9 months ago (2014-03-20 01:05:23 UTC) #10
robliao
The CQ bit was checked by robliao@chromium.org
6 years, 9 months ago (2014-03-20 03:41:14 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/robliao@chromium.org/202293003/20001
6 years, 9 months ago (2014-03-20 03:41:54 UTC) #12
commit-bot: I haz the power
6 years, 9 months ago (2014-03-20 07:01:21 UTC) #13
Message was sent while issue was closed.
Change committed as 258239

Powered by Google App Engine
This is Rietveld 408576698