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 "base/memory/scoped_ptr.h" | 5 #include "base/memory/scoped_ptr.h" |
6 #include "base/values.h" | 6 #include "base/values.h" |
7 #include "content/child/indexed_db/indexed_db_dispatcher.h" | 7 #include "content/child/indexed_db/indexed_db_dispatcher.h" |
8 #include "content/child/indexed_db/proxy_webidbcursor_impl.h" | 8 #include "content/child/indexed_db/proxy_webidbcursor_impl.h" |
9 #include "content/child/thread_safe_sender.h" | 9 #include "content/child/thread_safe_sender.h" |
10 #include "content/common/indexed_db/indexed_db_key.h" | 10 #include "content/common/indexed_db/indexed_db_key.h" |
11 #include "ipc/ipc_sync_message_filter.h" | 11 #include "ipc/ipc_sync_message_filter.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 #include "third_party/WebKit/public/platform/WebData.h" | 13 #include "third_party/WebKit/public/platform/WebData.h" |
14 #include "third_party/WebKit/public/platform/WebIDBCallbacks.h" | 14 #include "third_party/WebKit/public/platform/WebIDBCallbacks.h" |
15 | 15 |
16 using WebKit::WebData; | 16 using WebKit::WebData; |
17 using WebKit::WebIDBCallbacks; | 17 using WebKit::WebIDBCallbacks; |
18 using WebKit::WebIDBDatabase; | 18 using WebKit::WebIDBDatabase; |
19 using WebKit::WebIDBDatabaseError; | |
20 using WebKit::WebIDBKey; | 19 using WebKit::WebIDBKey; |
21 | 20 |
22 namespace content { | 21 namespace content { |
23 | 22 |
24 namespace { | 23 namespace { |
25 | 24 |
26 class MockDispatcher : public IndexedDBDispatcher { | 25 class MockDispatcher : public IndexedDBDispatcher { |
27 public: | 26 public: |
28 MockDispatcher(ThreadSafeSender* thread_safe_sender) | 27 MockDispatcher(ThreadSafeSender* thread_safe_sender) |
29 : IndexedDBDispatcher(thread_safe_sender), | 28 : IndexedDBDispatcher(thread_safe_sender), |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 EXPECT_EQ(expected_key++, key.number()); | 152 EXPECT_EQ(expected_key++, key.number()); |
154 } | 153 } |
155 } | 154 } |
156 } | 155 } |
157 | 156 |
158 EXPECT_EQ(dispatcher.destroyed_cursor_id(), | 157 EXPECT_EQ(dispatcher.destroyed_cursor_id(), |
159 RendererWebIDBCursorImpl::kInvalidCursorId); | 158 RendererWebIDBCursorImpl::kInvalidCursorId); |
160 } | 159 } |
161 | 160 |
162 } // namespace content | 161 } // namespace content |
OLD | NEW |