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

Side by Side Diff: chrome/browser/android/most_visited_sites_unittest.cc

Issue 1542413002: Switch to standard integer types in chrome/browser/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 <stddef.h>
6
5 #include <vector> 7 #include <vector>
6 8
7 #include "base/macros.h" 9 #include "base/macros.h"
8 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
9 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/browser/android/most_visited_sites.h" 12 #include "chrome/browser/android/most_visited_sites.h"
11 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
12 14
13 namespace { 15 namespace {
14 16
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 }; 220 };
219 bool expected_source_is_personal[] = {false, true, true, false}; 221 bool expected_source_is_personal[] = {false, true, true, false};
220 Check(std::vector<TitleURL>(popular, popular + arraysize(popular)), 222 Check(std::vector<TitleURL>(popular, popular + arraysize(popular)),
221 std::vector<TitleURL>(personal, personal + arraysize(personal)), 223 std::vector<TitleURL>(personal, personal + arraysize(personal)),
222 std::vector<std::string>(old, old + arraysize(old)), old_sites_source, 224 std::vector<std::string>(old, old + arraysize(old)), old_sites_source,
223 std::vector<bool>(expected_source_is_personal, 225 std::vector<bool>(expected_source_is_personal,
224 expected_source_is_personal + 226 expected_source_is_personal +
225 arraysize(expected_source_is_personal)), 227 arraysize(expected_source_is_personal)),
226 std::vector<TitleURL>(expected, expected + arraysize(expected))); 228 std::vector<TitleURL>(expected, expected + arraysize(expected)));
227 } 229 }
OLDNEW
« no previous file with comments | « chrome/browser/android/most_visited_sites.h ('k') | chrome/browser/android/new_tab_page_prefs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698