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/webidbcursor_impl.h" | 5 #include "content/child/indexed_db/webidbcursor_impl.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> |
11 | 11 |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/ptr_util.h" | 13 #include "base/memory/ptr_util.h" |
14 #include "base/thread_task_runner_handle.h" | 14 #include "base/threading/thread_task_runner_handle.h" |
15 #include "base/values.h" | 15 #include "base/values.h" |
16 #include "content/child/indexed_db/indexed_db_dispatcher.h" | 16 #include "content/child/indexed_db/indexed_db_dispatcher.h" |
17 #include "content/child/indexed_db/indexed_db_key_builders.h" | 17 #include "content/child/indexed_db/indexed_db_key_builders.h" |
18 #include "content/child/indexed_db/mock_webidbcallbacks.h" | 18 #include "content/child/indexed_db/mock_webidbcallbacks.h" |
19 #include "content/child/thread_safe_sender.h" | 19 #include "content/child/thread_safe_sender.h" |
20 #include "content/common/indexed_db/indexed_db_key.h" | 20 #include "content/common/indexed_db/indexed_db_key.h" |
21 #include "ipc/ipc_sync_message_filter.h" | 21 #include "ipc/ipc_sync_message_filter.h" |
22 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
23 #include "third_party/WebKit/public/platform/WebData.h" | 23 #include "third_party/WebKit/public/platform/WebData.h" |
24 | 24 |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 // The real dispatcher would call cursor->CachedContinue(), so do that: | 332 // The real dispatcher would call cursor->CachedContinue(), so do that: |
333 MockContinueCallbacks callbacks; | 333 MockContinueCallbacks callbacks; |
334 cursor.CachedContinue(&callbacks); | 334 cursor.CachedContinue(&callbacks); |
335 | 335 |
336 // Now the cursor should have reset the rest of the cache. | 336 // Now the cursor should have reset the rest of the cache. |
337 EXPECT_EQ(1, dispatcher_->reset_calls()); | 337 EXPECT_EQ(1, dispatcher_->reset_calls()); |
338 EXPECT_EQ(1, dispatcher_->last_used_count()); | 338 EXPECT_EQ(1, dispatcher_->last_used_count()); |
339 } | 339 } |
340 | 340 |
341 } // namespace content | 341 } // namespace content |
OLD | NEW |