OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "components/precache/core/precache_url_table.h" | 5 #include "components/precache/core/precache_url_table.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 | 8 |
9 #include "base/basictypes.h" | |
10 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
11 #include "base/time/time.h" | 10 #include "base/time/time.h" |
12 #include "sql/connection.h" | 11 #include "sql/connection.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
14 | 13 |
15 namespace precache { | 14 namespace precache { |
16 | 15 |
17 namespace { | 16 namespace { |
18 | 17 |
19 class PrecacheURLTableTest : public testing::Test { | 18 class PrecacheURLTableTest : public testing::Test { |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 expected_map[GURL("http://after.com")] = kAfterTime; | 106 expected_map[GURL("http://after.com")] = kAfterTime; |
108 | 107 |
109 std::map<GURL, base::Time> actual_map; | 108 std::map<GURL, base::Time> actual_map; |
110 precache_url_table_->GetAllDataForTesting(&actual_map); | 109 precache_url_table_->GetAllDataForTesting(&actual_map); |
111 EXPECT_EQ(expected_map, actual_map); | 110 EXPECT_EQ(expected_map, actual_map); |
112 } | 111 } |
113 | 112 |
114 } // namespace | 113 } // namespace |
115 | 114 |
116 } // namespace precache | 115 } // namespace precache |
OLD | NEW |