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

Side by Side Diff: content/renderer/gpu/queue_message_swap_promise_unittest.cc

Issue 503083003: Remove implicit conversions from scoped_refptr to T* in content/renderer/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/gpu/queue_message_swap_promise.h" 5 #include "content/renderer/gpu/queue_message_swap_promise.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/memory/scoped_vector.h" 9 #include "base/memory/scoped_vector.h"
10 #include "cc/base/swap_promise.h" 10 #include "cc/base/swap_promise.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 sync_message_filter_(new TestSyncMessageFilter()) {} 61 sync_message_filter_(new TestSyncMessageFilter()) {}
62 62
63 virtual ~QueueMessageSwapPromiseTest() {} 63 virtual ~QueueMessageSwapPromiseTest() {}
64 64
65 scoped_ptr<cc::SwapPromise> QueueMessageImpl(IPC::Message* msg, 65 scoped_ptr<cc::SwapPromise> QueueMessageImpl(IPC::Message* msg,
66 MessageDeliveryPolicy policy, 66 MessageDeliveryPolicy policy,
67 bool commit_requested, 67 bool commit_requested,
68 int source_frame_number) { 68 int source_frame_number) {
69 return TestRenderWidget::QueueMessageImpl(msg, 69 return TestRenderWidget::QueueMessageImpl(msg,
70 policy, 70 policy,
71 frame_swap_message_queue_, 71 frame_swap_message_queue_.get(),
72 sync_message_filter_, 72 sync_message_filter_,
73 commit_requested, 73 commit_requested,
74 source_frame_number).Pass(); 74 source_frame_number).Pass();
75 } 75 }
76 76
77 ScopedVector<IPC::Message>& DirectSendMessages() { 77 ScopedVector<IPC::Message>& DirectSendMessages() {
78 return sync_message_filter_->messages(); 78 return sync_message_filter_->messages();
79 } 79 }
80 80
81 ScopedVector<IPC::Message>& NextSwapMessages() { 81 ScopedVector<IPC::Message>& NextSwapMessages() {
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 TEST_F(QueueMessageSwapPromiseTest, 313 TEST_F(QueueMessageSwapPromiseTest,
314 VisalStateSwapPromiseDidNotSwapCommitFails) { 314 VisalStateSwapPromiseDidNotSwapCommitFails) {
315 VisualStateSwapPromiseDidNotSwap(cc::SwapPromise::COMMIT_FAILS); 315 VisualStateSwapPromiseDidNotSwap(cc::SwapPromise::COMMIT_FAILS);
316 } 316 }
317 317
318 TEST_F(QueueMessageSwapPromiseTest, VisalStateSwapPromiseDidNotSwapSwapFails) { 318 TEST_F(QueueMessageSwapPromiseTest, VisalStateSwapPromiseDidNotSwapSwapFails) {
319 VisualStateSwapPromiseDidNotSwap(cc::SwapPromise::SWAP_FAILS); 319 VisualStateSwapPromiseDidNotSwap(cc::SwapPromise::SWAP_FAILS);
320 } 320 }
321 321
322 } // namespace content 322 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/child_frame_compositing_helper.cc ('k') | content/renderer/render_frame_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698