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

Issue 127243002: Pepper: Change ResourceMessageTestSink API for getting multiple messages. (Closed)

Created:
6 years, 11 months ago by bbudge
Modified:
6 years, 11 months ago
Reviewers:
raymes
CC:
chromium-reviews
Visibility:
Public.

Description

Pepper: Change ResourceMessageTestSink API for getting multiple messages. - Remove GetNext* methods. - Add GetAll* methods, returning a vector of Params/Msg pairs. BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243907

Patch Set 1 #

Total comments: 2

Patch Set 2 : Implement GetFirst* methods in terms of GetAll* ones. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -98 lines) Patch
M ppapi/proxy/file_system_resource_unittest.cc View 10 chunks +36 lines, -33 lines 0 comments Download
M ppapi/proxy/resource_message_test_sink.h View 2 chunks +10 lines, -16 lines 0 comments Download
M ppapi/proxy/resource_message_test_sink.cc View 1 2 chunks +35 lines, -49 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
bbudge
Hmmm, not as bad as I thought. I didn't know about IPC::TestSink::ClearMessages().
6 years, 11 months ago (2014-01-08 00:43:50 UTC) #1
raymes
Much better! Thanks. https://codereview.chromium.org/127243002/diff/1/ppapi/proxy/resource_message_test_sink.h File ppapi/proxy/resource_message_test_sink.h (right): https://codereview.chromium.org/127243002/diff/1/ppapi/proxy/resource_message_test_sink.h#newcode43 ppapi/proxy/resource_message_test_sink.h:43: bool GetFirstResourceReplyMatching( Can we get rid ...
6 years, 11 months ago (2014-01-08 02:21:22 UTC) #2
bbudge
https://codereview.chromium.org/127243002/diff/1/ppapi/proxy/resource_message_test_sink.h File ppapi/proxy/resource_message_test_sink.h (right): https://codereview.chromium.org/127243002/diff/1/ppapi/proxy/resource_message_test_sink.h#newcode43 ppapi/proxy/resource_message_test_sink.h:43: bool GetFirstResourceReplyMatching( On 2014/01/08 02:21:22, raymes wrote: > Can ...
6 years, 11 months ago (2014-01-08 03:05:16 UTC) #3
raymes
But the callers have to check whether true is returned from the existing function. So ...
6 years, 11 months ago (2014-01-09 02:41:09 UTC) #4
bbudge
On 2014/01/09 02:41:09, raymes wrote: > But the callers have to check whether true is ...
6 years, 11 months ago (2014-01-09 02:50:58 UTC) #5
raymes
I'm think that before we would have called: if (GetFirst...(...)) { do something; } Now ...
6 years, 11 months ago (2014-01-09 02:57:39 UTC) #6
bbudge
On 2014/01/09 02:57:39, raymes wrote: > I'm think that before we would have called: > ...
6 years, 11 months ago (2014-01-09 03:14:13 UTC) #7
raymes
lgtm I still think having the single function makes for a better interface, but not ...
6 years, 11 months ago (2014-01-09 03:20:09 UTC) #8
bbudge
On 2014/01/09 03:20:09, raymes wrote: > lgtm > > I still think having the single ...
6 years, 11 months ago (2014-01-09 13:36:27 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bbudge@chromium.org/127243002/130001
6 years, 11 months ago (2014-01-09 13:36:47 UTC) #10
commit-bot: I haz the power
6 years, 11 months ago (2014-01-09 15:59:28 UTC) #11
Message was sent while issue was closed.
Change committed as 243907

Powered by Google App Engine
This is Rietveld 408576698