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 <stdint.h> |
| 6 |
5 #include <limits> | 7 #include <limits> |
6 | 8 |
7 #include "base/bind.h" | 9 #include "base/bind.h" |
8 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
9 #include "base/files/scoped_temp_dir.h" | 11 #include "base/files/scoped_temp_dir.h" |
| 12 #include "base/macros.h" |
10 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
11 #include "content/browser/appcache/appcache_database.h" | 14 #include "content/browser/appcache/appcache_database.h" |
12 #include "content/browser/appcache/appcache_entry.h" | 15 #include "content/browser/appcache/appcache_entry.h" |
13 #include "sql/connection.h" | 16 #include "sql/connection.h" |
14 #include "sql/meta_table.h" | 17 #include "sql/meta_table.h" |
15 #include "sql/statement.h" | 18 #include "sql/statement.h" |
16 #include "sql/test/scoped_error_ignorer.h" | 19 #include "sql/test/scoped_error_ignorer.h" |
17 #include "sql/test/test_helpers.h" | 20 #include "sql/test/test_helpers.h" |
18 #include "sql/transaction.h" | 21 #include "sql/transaction.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 1273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1293 AppCacheDatabase::GroupRecord group; | 1296 AppCacheDatabase::GroupRecord group; |
1294 EXPECT_TRUE(db.FindGroup(1, &group)); | 1297 EXPECT_TRUE(db.FindGroup(1, &group)); |
1295 EXPECT_EQ(kMockTime, group.last_full_update_check_time); | 1298 EXPECT_EQ(kMockTime, group.last_full_update_check_time); |
1296 EXPECT_EQ(kZeroTime, group.first_evictable_error_time); | 1299 EXPECT_EQ(kZeroTime, group.first_evictable_error_time); |
1297 EXPECT_TRUE(db.FindGroup(2, &group)); | 1300 EXPECT_TRUE(db.FindGroup(2, &group)); |
1298 EXPECT_EQ(kZeroTime, group.last_full_update_check_time); | 1301 EXPECT_EQ(kZeroTime, group.last_full_update_check_time); |
1299 EXPECT_EQ(kZeroTime, group.first_evictable_error_time); | 1302 EXPECT_EQ(kZeroTime, group.first_evictable_error_time); |
1300 } | 1303 } |
1301 | 1304 |
1302 } // namespace content | 1305 } // namespace content |
OLD | NEW |