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 "base/file_util.h" | 5 #include "base/file_util.h" |
6 #include "base/files/file.h" | 6 #include "base/files/file.h" |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/files/scoped_temp_dir.h" | 8 #include "base/files/scoped_temp_dir.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
11 #include "base/message_loop/message_loop_proxy.h" | 11 #include "base/message_loop/message_loop_proxy.h" |
12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
14 #include "content/public/test/mock_special_storage_policy.h" | 14 #include "content/public/test/mock_special_storage_policy.h" |
15 #include "net/base/net_errors.h" | 15 #include "net/base/net_errors.h" |
16 #include "net/base/test_completion_callback.h" | 16 #include "net/base/test_completion_callback.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
18 #include "third_party/sqlite/sqlite3.h" | 18 #include "third_party/sqlite/sqlite3.h" |
19 #include "webkit/browser/database/database_tracker.h" | 19 #include "storage/browser/database/database_tracker.h" |
20 #include "webkit/browser/quota/quota_manager_proxy.h" | 20 #include "storage/browser/quota/quota_manager_proxy.h" |
21 #include "webkit/common/database/database_identifier.h" | 21 #include "storage/common/database/database_identifier.h" |
22 | 22 |
23 using base::ASCIIToUTF16; | 23 using base::ASCIIToUTF16; |
24 using webkit_database::DatabaseConnections; | 24 using webkit_database::DatabaseConnections; |
25 using webkit_database::DatabaseTracker; | 25 using webkit_database::DatabaseTracker; |
26 using webkit_database::OriginInfo; | 26 using webkit_database::OriginInfo; |
27 | 27 |
28 namespace { | 28 namespace { |
29 | 29 |
30 const char kOrigin1Url[] = "http://origin1"; | 30 const char kOrigin1Url[] = "http://origin1"; |
31 const char kOrigin2Url[] = "http://protected_origin2"; | 31 const char kOrigin2Url[] = "http://protected_origin2"; |
(...skipping 834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
866 | 866 |
867 TEST(DatabaseTrackerTest, EmptyDatabaseNameIsValid) { | 867 TEST(DatabaseTrackerTest, EmptyDatabaseNameIsValid) { |
868 DatabaseTracker_TestHelper_Test::EmptyDatabaseNameIsValid(); | 868 DatabaseTracker_TestHelper_Test::EmptyDatabaseNameIsValid(); |
869 } | 869 } |
870 | 870 |
871 TEST(DatabaseTrackerTest, HandleSqliteError) { | 871 TEST(DatabaseTrackerTest, HandleSqliteError) { |
872 DatabaseTracker_TestHelper_Test::HandleSqliteError(); | 872 DatabaseTracker_TestHelper_Test::HandleSqliteError(); |
873 } | 873 } |
874 | 874 |
875 } // namespace content | 875 } // namespace content |
OLD | NEW |