| 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/history/core/browser/top_sites_cache.h" | 5 #include "components/history/core/browser/top_sites_cache.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <set> | 9 #include <set> |
| 8 | 10 |
| 9 #include "base/basictypes.h" | |
| 10 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/macros.h" |
| 11 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
| 12 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
| 13 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 15 | 17 |
| 16 namespace history { | 18 namespace history { |
| 17 | 19 |
| 18 namespace { | 20 namespace { |
| 19 | 21 |
| 20 class TopSitesCacheTest : public testing::Test { | 22 class TopSitesCacheTest : public testing::Test { |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 top_sites_[1].last_forced_time = base::Time::FromJsTime(2000); | 251 top_sites_[1].last_forced_time = base::Time::FromJsTime(2000); |
| 250 cache_.SetTopSites(top_sites_); | 252 cache_.SetTopSites(top_sites_); |
| 251 | 253 |
| 252 EXPECT_EQ(2u, cache_.GetNumForcedURLs()); | 254 EXPECT_EQ(2u, cache_.GetNumForcedURLs()); |
| 253 EXPECT_EQ(2u, cache_.GetNumNonForcedURLs()); | 255 EXPECT_EQ(2u, cache_.GetNumNonForcedURLs()); |
| 254 } | 256 } |
| 255 | 257 |
| 256 } // namespace | 258 } // namespace |
| 257 | 259 |
| 258 } // namespace history | 260 } // namespace history |
| OLD | NEW |