Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(255)

Side by Side Diff: components/history/core/browser/top_sites_cache_unittest.cc

Issue 1548113002: Switch to standard integer types in components/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/history/core/browser/top_sites_cache.h ('k') | components/history/core/browser/top_sites_database.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698