OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |