OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <algorithm> | 5 #include <algorithm> |
6 #include <iterator> | 6 #include <iterator> |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
12 #include "base/files/scoped_temp_dir.h" | 12 #include "base/files/scoped_temp_dir.h" |
13 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
14 #include "content/public/test/mock_special_storage_policy.h" | 14 #include "content/public/test/mock_special_storage_policy.h" |
15 #include "sql/connection.h" | 15 #include "sql/connection.h" |
16 #include "sql/meta_table.h" | 16 #include "sql/meta_table.h" |
17 #include "sql/statement.h" | 17 #include "sql/statement.h" |
18 #include "sql/transaction.h" | 18 #include "sql/transaction.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
20 #include "url/gurl.h" | 20 #include "url/gurl.h" |
21 #include "webkit/browser/quota/quota_database.h" | 21 #include "storage/browser/quota/quota_database.h" |
22 | 22 |
23 using quota::kStorageTypePersistent; | 23 using quota::kStorageTypePersistent; |
24 using quota::kStorageTypeTemporary; | 24 using quota::kStorageTypeTemporary; |
25 using quota::QuotaDatabase; | 25 using quota::QuotaDatabase; |
26 | 26 |
27 namespace content { | 27 namespace content { |
28 namespace { | 28 namespace { |
29 | 29 |
30 const base::Time kZeroTime; | 30 const base::Time kZeroTime; |
31 | 31 |
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 } | 558 } |
559 | 559 |
560 TEST_F(QuotaDatabaseTest, DumpOriginInfoTable) { | 560 TEST_F(QuotaDatabaseTest, DumpOriginInfoTable) { |
561 base::ScopedTempDir data_dir; | 561 base::ScopedTempDir data_dir; |
562 ASSERT_TRUE(data_dir.CreateUniqueTempDir()); | 562 ASSERT_TRUE(data_dir.CreateUniqueTempDir()); |
563 const base::FilePath kDbFile = data_dir.path().AppendASCII(kDBFileName); | 563 const base::FilePath kDbFile = data_dir.path().AppendASCII(kDBFileName); |
564 DumpOriginInfoTable(kDbFile); | 564 DumpOriginInfoTable(kDbFile); |
565 DumpOriginInfoTable(base::FilePath()); | 565 DumpOriginInfoTable(base::FilePath()); |
566 } | 566 } |
567 } // namespace content | 567 } // namespace content |
OLD | NEW |