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

Side by Side Diff: content/child/indexed_db/indexed_db_dispatcher_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 | « no previous file | content/child/indexed_db/webidbcursor_impl_unittest.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/child/indexed_db/indexed_db_dispatcher.h" 5 #include "content/child/indexed_db/indexed_db_dispatcher.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 delete msg; 47 delete msg;
48 return true; 48 return true;
49 } 49 }
50 50
51 private: 51 private:
52 DISALLOW_COPY_AND_ASSIGN(MockDispatcher); 52 DISALLOW_COPY_AND_ASSIGN(MockDispatcher);
53 }; 53 };
54 54
55 class MockSyncMessageFilter : public IPC::SyncMessageFilter { 55 class MockSyncMessageFilter : public IPC::SyncMessageFilter {
56 public: 56 public:
57 MockSyncMessageFilter() 57 MockSyncMessageFilter() : SyncMessageFilter(nullptr) {}
58 : SyncMessageFilter(nullptr, false /* is_channel_send_thread_safe */) {}
59 58
60 private: 59 private:
61 ~MockSyncMessageFilter() override {} 60 ~MockSyncMessageFilter() override {}
62 }; 61 };
63 62
64 } // namespace 63 } // namespace
65 64
66 class IndexedDBDispatcherTest : public testing::Test { 65 class IndexedDBDispatcherTest : public testing::Test {
67 public: 66 public:
68 IndexedDBDispatcherTest() 67 IndexedDBDispatcherTest()
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 other_cursor_ipc_id, cursor1_transaction_id); 312 other_cursor_ipc_id, cursor1_transaction_id);
314 313
315 EXPECT_EQ(2, cursor1->reset_count()); 314 EXPECT_EQ(2, cursor1->reset_count());
316 EXPECT_EQ(0, cursor2->reset_count()); 315 EXPECT_EQ(0, cursor2->reset_count());
317 316
318 cursor1.reset(); 317 cursor1.reset();
319 cursor2.reset(); 318 cursor2.reset();
320 } 319 }
321 320
322 } // namespace content 321 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/child/indexed_db/webidbcursor_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698