| 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/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/file_util.h" | 6 #include "base/file_util.h" |
| 7 #include "base/files/scoped_temp_dir.h" | 7 #include "base/files/scoped_temp_dir.h" |
| 8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
| 9 #include "content/browser/appcache/appcache_database.h" |
| 10 #include "content/browser/appcache/appcache_entry.h" |
| 9 #include "sql/connection.h" | 11 #include "sql/connection.h" |
| 10 #include "sql/meta_table.h" | 12 #include "sql/meta_table.h" |
| 11 #include "sql/statement.h" | 13 #include "sql/statement.h" |
| 12 #include "sql/test/scoped_error_ignorer.h" | 14 #include "sql/test/scoped_error_ignorer.h" |
| 13 #include "sql/test/test_helpers.h" | 15 #include "sql/test/test_helpers.h" |
| 14 #include "sql/transaction.h" | 16 #include "sql/transaction.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| 16 #include "third_party/sqlite/sqlite3.h" | 18 #include "third_party/sqlite/sqlite3.h" |
| 17 #include "webkit/browser/appcache/appcache_database.h" | |
| 18 #include "webkit/browser/appcache/appcache_entry.h" | |
| 19 | |
| 20 using appcache::AppCacheDatabase; | |
| 21 using appcache::AppCacheEntry; | |
| 22 using appcache::APPCACHE_FALLBACK_NAMESPACE; | |
| 23 using appcache::APPCACHE_INTERCEPT_NAMESPACE; | |
| 24 using appcache::APPCACHE_NETWORK_NAMESPACE; | |
| 25 | 19 |
| 26 namespace { | 20 namespace { |
| 27 | 21 |
| 28 const base::Time kZeroTime; | 22 const base::Time kZeroTime; |
| 29 | 23 |
| 30 } // namespace | 24 } // namespace |
| 31 | 25 |
| 32 namespace content { | 26 namespace content { |
| 33 | 27 |
| 34 class AppCacheDatabaseTest {}; | 28 class AppCacheDatabaseTest {}; |
| (...skipping 1172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1207 EXPECT_EQ(expected_namespace_url, fallbacks[i].namespace_.namespace_url); | 1201 EXPECT_EQ(expected_namespace_url, fallbacks[i].namespace_.namespace_url); |
| 1208 EXPECT_EQ(expected_target_url, fallbacks[i].namespace_.target_url); | 1202 EXPECT_EQ(expected_target_url, fallbacks[i].namespace_.target_url); |
| 1209 EXPECT_FALSE(fallbacks[i].namespace_.is_pattern); | 1203 EXPECT_FALSE(fallbacks[i].namespace_.is_pattern); |
| 1210 EXPECT_EQ(expected_whitelist_url, whitelists[i].namespace_url); | 1204 EXPECT_EQ(expected_whitelist_url, whitelists[i].namespace_url); |
| 1211 EXPECT_FALSE(whitelists[i].is_pattern); | 1205 EXPECT_FALSE(whitelists[i].is_pattern); |
| 1212 } | 1206 } |
| 1213 } | 1207 } |
| 1214 #endif // !APPCACHE_USE_SIMPLE_CACHE | 1208 #endif // !APPCACHE_USE_SIMPLE_CACHE |
| 1215 | 1209 |
| 1216 } // namespace content | 1210 } // namespace content |
| OLD | NEW |