| 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 "chrome/browser/android/ntp/most_visited_sites.h" | 5 #include "components/ntp_tiles/most_visited_sites.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/memory/ptr_util.h" | 13 #include "base/memory/ptr_util.h" |
| 14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 bool expected_source_is_personal[] = {false, true, true, false}; | 232 bool expected_source_is_personal[] = {false, true, true, false}; |
| 233 Check(std::vector<TitleURL>(popular, popular + arraysize(popular)), | 233 Check(std::vector<TitleURL>(popular, popular + arraysize(popular)), |
| 234 std::vector<TitleURL>(), | 234 std::vector<TitleURL>(), |
| 235 std::vector<TitleURL>(personal, personal + arraysize(personal)), | 235 std::vector<TitleURL>(personal, personal + arraysize(personal)), |
| 236 std::vector<std::string>(old, old + arraysize(old)), old_sites_source, | 236 std::vector<std::string>(old, old + arraysize(old)), old_sites_source, |
| 237 std::vector<bool>(expected_source_is_personal, | 237 std::vector<bool>(expected_source_is_personal, |
| 238 expected_source_is_personal + | 238 expected_source_is_personal + |
| 239 arraysize(expected_source_is_personal)), | 239 arraysize(expected_source_is_personal)), |
| 240 std::vector<TitleURL>(expected, expected + arraysize(expected))); | 240 std::vector<TitleURL>(expected, expected + arraysize(expected))); |
| 241 } | 241 } |
| OLD | NEW |