OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |