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

Issue 822203006: Push API: Replace buggy FutureData test helper with ResultQueue (Closed)

Created:
5 years, 11 months ago by johnme
Modified:
5 years, 11 months ago
CC:
chromium-reviews, zea+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@uservisible
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Push API: Replace buggy FutureData test helper with ResultQueue Since FutureData didn't properly clear its state after a get(), it was possible a piece of data provided via set() to be sent back twice to the test code! Replaced it with a queue data structure that doesn't have these problems (and also won't lose data in the event that test code causes two or more results to be asynchronously generated before getting the results, though so far I think we've been lucky on that front). BUG=437277 Committed: https://crrev.com/8863b7da7faae03cc65dd1076c36278e8a6831e9 Cr-Commit-Position: refs/heads/master@{#311304}

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -37 lines) Patch
M chrome/browser/services/gcm/push_messaging_browsertest.cc View 3 chunks +6 lines, -12 lines 0 comments Download
M chrome/test/data/push_messaging/push_test.js View 3 chunks +27 lines, -25 lines 4 comments Download

Messages

Total messages: 12 (3 generated)
johnme
5 years, 11 months ago (2015-01-13 11:06:13 UTC) #2
Michael van Ouwerkerk
https://codereview.chromium.org/822203006/diff/1/chrome/test/data/push_messaging/push_test.js File chrome/test/data/push_messaging/push_test.js (right): https://codereview.chromium.org/822203006/diff/1/chrome/test/data/push_messaging/push_test.js#newcode26 chrome/test/data/push_messaging/push_test.js:26: function ResultQueue() { I don't mind a more powerful ...
5 years, 11 months ago (2015-01-13 11:14:51 UTC) #3
johnme
5 years, 11 months ago (2015-01-13 11:16:18 UTC) #5
Peter Beverloo
lgtm https://codereview.chromium.org/822203006/diff/1/chrome/test/data/push_messaging/push_test.js File chrome/test/data/push_messaging/push_test.js (right): https://codereview.chromium.org/822203006/diff/1/chrome/test/data/push_messaging/push_test.js#newcode7 chrome/test/data/push_messaging/push_test.js:7: var resultQueue = new ResultQueue(); nit: since this ...
5 years, 11 months ago (2015-01-13 16:53:38 UTC) #6
johnme
Thanks for review both https://codereview.chromium.org/822203006/diff/1/chrome/test/data/push_messaging/push_test.js File chrome/test/data/push_messaging/push_test.js (right): https://codereview.chromium.org/822203006/diff/1/chrome/test/data/push_messaging/push_test.js#newcode7 chrome/test/data/push_messaging/push_test.js:7: var resultQueue = new ResultQueue(); ...
5 years, 11 months ago (2015-01-13 18:03:04 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/822203006/1
5 years, 11 months ago (2015-01-13 18:04:10 UTC) #9
Peter Beverloo
On 2015/01/13 18:03:04, johnme wrote: > Thanks for review both > > https://codereview.chromium.org/822203006/diff/1/chrome/test/data/push_messaging/push_test.js > File ...
5 years, 11 months ago (2015-01-13 18:06:11 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 11 months ago (2015-01-13 19:21:25 UTC) #11
commit-bot: I haz the power
5 years, 11 months ago (2015-01-13 19:22:13 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/8863b7da7faae03cc65dd1076c36278e8a6831e9
Cr-Commit-Position: refs/heads/master@{#311304}

Powered by Google App Engine
This is Rietveld 408576698