OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <vector> | 5 #include <vector> |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/memory/scoped_callback_factory.h" | 8 #include "base/memory/scoped_callback_factory.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/scoped_temp_dir.h" | |
11 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
12 #include "base/message_loop_proxy.h" | 11 #include "base/message_loop_proxy.h" |
| 12 #include "base/scoped_temp_dir.h" |
13 #include "base/stl_util-inl.h" | 13 #include "base/stl_util-inl.h" |
14 #include "base/sys_info.h" | 14 #include "base/sys_info.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageQuotaError.
h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageQuotaError.
h" |
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageQuotaType.h
" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageQuotaType.h
" |
18 #include "webkit/quota/mock_storage_client.h" | 18 #include "webkit/quota/mock_storage_client.h" |
19 #include "webkit/quota/quota_database.h" | 19 #include "webkit/quota/quota_database.h" |
20 #include "webkit/quota/quota_manager.h" | 20 #include "webkit/quota/quota_manager.h" |
21 | 21 |
22 using base::MessageLoopProxy; | 22 using base::MessageLoopProxy; |
(...skipping 862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
885 GetCachedOrigins(kStorageTypeTemporary, &origins); | 885 GetCachedOrigins(kStorageTypeTemporary, &origins); |
886 EXPECT_EQ(3U, origins.size()); | 886 EXPECT_EQ(3U, origins.size()); |
887 | 887 |
888 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kData); ++i) { | 888 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kData); ++i) { |
889 if (kData[i].type == kStorageTypeTemporary) | 889 if (kData[i].type == kStorageTypeTemporary) |
890 EXPECT_TRUE(origins.find(GURL(kData[i].origin)) != origins.end()); | 890 EXPECT_TRUE(origins.find(GURL(kData[i].origin)) != origins.end()); |
891 } | 891 } |
892 } | 892 } |
893 | 893 |
894 } // namespace quota | 894 } // namespace quota |
OLD | NEW |