| 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" | 9 #include "app/sql/connection.h" |
| 10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| 11 #include "base/memory/scoped_temp_dir.h" | 11 #include "base/scoped_temp_dir.h" |
| 12 #include "googleurl/src/gurl.h" | 12 #include "googleurl/src/gurl.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 14 #include "webkit/quota/quota_database.h" | 14 #include "webkit/quota/quota_database.h" |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 | 17 |
| 18 const base::Time kZeroTime; | 18 const base::Time kZeroTime; |
| 19 | 19 |
| 20 class TestErrorDelegate : public sql::ErrorDelegate { | 20 class TestErrorDelegate : public sql::ErrorDelegate { |
| 21 public: | 21 public: |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 } | 241 } |
| 242 | 242 |
| 243 TEST_F(QuotaDatabaseTest, RegisterOrigins) { | 243 TEST_F(QuotaDatabaseTest, RegisterOrigins) { |
| 244 ScopedTempDir data_dir; | 244 ScopedTempDir data_dir; |
| 245 ASSERT_TRUE(data_dir.CreateUniqueTempDir()); | 245 ASSERT_TRUE(data_dir.CreateUniqueTempDir()); |
| 246 const FilePath kDbFile = data_dir.path().AppendASCII("quota_manager.db"); | 246 const FilePath kDbFile = data_dir.path().AppendASCII("quota_manager.db"); |
| 247 RegisterOrigins(kDbFile); | 247 RegisterOrigins(kDbFile); |
| 248 RegisterOrigins(FilePath()); | 248 RegisterOrigins(FilePath()); |
| 249 } | 249 } |
| 250 } // namespace quota | 250 } // namespace quota |
| OLD | NEW |