| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_path.h" | 6 #include "base/files/file_path.h" |
| 7 #include "base/files/scoped_temp_dir.h" | 7 #include "base/files/scoped_temp_dir.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "base/message_loop/message_loop_proxy.h" | 10 #include "base/message_loop/message_loop_proxy.h" |
| 11 #include "base/platform_file.h" | 11 #include "base/platform_file.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 "net/base/net_errors.h" | 14 #include "net/base/net_errors.h" |
| 15 #include "net/base/test_completion_callback.h" | 15 #include "net/base/test_completion_callback.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 17 #include "third_party/sqlite/sqlite3.h" | 17 #include "third_party/sqlite/sqlite3.h" |
| 18 #include "webkit/browser/database/database_tracker.h" | 18 #include "webkit/browser/database/database_tracker.h" |
| 19 #include "webkit/browser/quota/mock_special_storage_policy.h" | 19 #include "webkit/browser/quota/mock_special_storage_policy.h" |
| 20 #include "webkit/browser/quota/quota_manager.h" | 20 #include "webkit/browser/quota/quota_manager.h" |
| 21 #include "webkit/common/database/database_identifier.h" | 21 #include "webkit/common/database/database_identifier.h" |
| 22 | 22 |
| 23 using base::ASCIIToWide; | 23 using base::ASCIIToUTF16; |
| 24 | 24 |
| 25 namespace { | 25 namespace { |
| 26 | 26 |
| 27 const char kOrigin1Url[] = "http://origin1"; | 27 const char kOrigin1Url[] = "http://origin1"; |
| 28 const char kOrigin2Url[] = "http://protected_origin2"; | 28 const char kOrigin2Url[] = "http://protected_origin2"; |
| 29 | 29 |
| 30 class TestObserver : public webkit_database::DatabaseTracker::Observer { | 30 class TestObserver : public webkit_database::DatabaseTracker::Observer { |
| 31 public: | 31 public: |
| 32 TestObserver() | 32 TestObserver() |
| 33 : new_notification_received_(false), | 33 : new_notification_received_(false), |
| (...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 870 | 870 |
| 871 TEST(DatabaseTrackerTest, EmptyDatabaseNameIsValid) { | 871 TEST(DatabaseTrackerTest, EmptyDatabaseNameIsValid) { |
| 872 DatabaseTracker_TestHelper_Test::EmptyDatabaseNameIsValid(); | 872 DatabaseTracker_TestHelper_Test::EmptyDatabaseNameIsValid(); |
| 873 } | 873 } |
| 874 | 874 |
| 875 TEST(DatabaseTrackerTest, HandleSqliteError) { | 875 TEST(DatabaseTrackerTest, HandleSqliteError) { |
| 876 DatabaseTracker_TestHelper_Test::HandleSqliteError(); | 876 DatabaseTracker_TestHelper_Test::HandleSqliteError(); |
| 877 } | 877 } |
| 878 | 878 |
| 879 } // namespace webkit_database | 879 } // namespace webkit_database |
| OLD | NEW |