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

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

Issue 2343033002: IPC: Delete thread-safe send support (Closed)
Patch Set: Created 4 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
« no previous file with comments | « content/child/indexed_db/webidbcursor_impl_unittest.cc ('k') | ipc/ipc_channel.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 17 matching lines...) Expand all
28 using RenderWidget::QueueMessageImpl; 28 using RenderWidget::QueueMessageImpl;
29 29
30 private: 30 private:
31 ~TestRenderWidget() override {} 31 ~TestRenderWidget() override {}
32 32
33 DISALLOW_COPY_AND_ASSIGN(TestRenderWidget); 33 DISALLOW_COPY_AND_ASSIGN(TestRenderWidget);
34 }; 34 };
35 35
36 class TestSyncMessageFilter : public IPC::SyncMessageFilter { 36 class TestSyncMessageFilter : public IPC::SyncMessageFilter {
37 public: 37 public:
38 TestSyncMessageFilter() : IPC::SyncMessageFilter(NULL, false) {} 38 TestSyncMessageFilter() : IPC::SyncMessageFilter(nullptr) {}
39 39
40 bool Send(IPC::Message* message) override { 40 bool Send(IPC::Message* message) override {
41 messages_.push_back(base::WrapUnique(message)); 41 messages_.push_back(base::WrapUnique(message));
42 return true; 42 return true;
43 } 43 }
44 44
45 std::vector<std::unique_ptr<IPC::Message>>& messages() { return messages_; } 45 std::vector<std::unique_ptr<IPC::Message>>& messages() { return messages_; }
46 46
47 private: 47 private:
48 ~TestSyncMessageFilter() override {} 48 ~TestSyncMessageFilter() override {}
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 TEST_F(QueueMessageSwapPromiseTest, VisualStateSwapPromiseDidNotSwapSwapFails) { 318 TEST_F(QueueMessageSwapPromiseTest, VisualStateSwapPromiseDidNotSwapSwapFails) {
319 VisualStateSwapPromiseDidNotSwap(cc::SwapPromise::SWAP_FAILS); 319 VisualStateSwapPromiseDidNotSwap(cc::SwapPromise::SWAP_FAILS);
320 } 320 }
321 321
322 TEST_F(QueueMessageSwapPromiseTest, 322 TEST_F(QueueMessageSwapPromiseTest,
323 VisualStateSwapPromiseDidNotSwapActivationFails) { 323 VisualStateSwapPromiseDidNotSwapActivationFails) {
324 VisualStateSwapPromiseDidNotSwap(cc::SwapPromise::ACTIVATION_FAILS); 324 VisualStateSwapPromiseDidNotSwap(cc::SwapPromise::ACTIVATION_FAILS);
325 } 325 }
326 326
327 } // namespace content 327 } // namespace content
OLDNEW
« no previous file with comments | « content/child/indexed_db/webidbcursor_impl_unittest.cc ('k') | ipc/ipc_channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698