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 <algorithm> | 5 #include <algorithm> |
6 #include <iterator> | 6 #include <iterator> |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "app/sql/connection.h" | |
10 #include "app/sql/meta_table.h" | |
11 #include "app/sql/statement.h" | |
12 #include "app/sql/transaction.h" | |
13 #include "base/bind.h" | 9 #include "base/bind.h" |
14 #include "base/callback.h" | 10 #include "base/callback.h" |
15 #include "base/file_util.h" | 11 #include "base/file_util.h" |
16 #include "base/scoped_temp_dir.h" | 12 #include "base/scoped_temp_dir.h" |
17 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
| 14 #include "sql/connection.h" |
| 15 #include "sql/meta_table.h" |
| 16 #include "sql/statement.h" |
| 17 #include "sql/transaction.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
19 #include "webkit/quota/mock_special_storage_policy.h" | 19 #include "webkit/quota/mock_special_storage_policy.h" |
20 #include "webkit/quota/quota_database.h" | 20 #include "webkit/quota/quota_database.h" |
21 | 21 |
22 namespace quota { | 22 namespace quota { |
23 namespace { | 23 namespace { |
24 | 24 |
25 const base::Time kZeroTime; | 25 const base::Time kZeroTime; |
26 | 26 |
27 class TestErrorDelegate : public sql::ErrorDelegate { | 27 class TestErrorDelegate : public sql::ErrorDelegate { |
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 } | 554 } |
555 | 555 |
556 TEST_F(QuotaDatabaseTest, DumpOriginInfoTable) { | 556 TEST_F(QuotaDatabaseTest, DumpOriginInfoTable) { |
557 ScopedTempDir data_dir; | 557 ScopedTempDir data_dir; |
558 ASSERT_TRUE(data_dir.CreateUniqueTempDir()); | 558 ASSERT_TRUE(data_dir.CreateUniqueTempDir()); |
559 const FilePath kDbFile = data_dir.path().AppendASCII("quota_manager.db"); | 559 const FilePath kDbFile = data_dir.path().AppendASCII("quota_manager.db"); |
560 DumpOriginInfoTable(kDbFile); | 560 DumpOriginInfoTable(kDbFile); |
561 DumpOriginInfoTable(FilePath()); | 561 DumpOriginInfoTable(FilePath()); |
562 } | 562 } |
563 } // namespace quota | 563 } // namespace quota |
OLD | NEW |