| 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 std::vector<TitleURL> expected_sites{ | 130 std::vector<TitleURL> expected_sites{ |
| 131 TitleURL("Site 3", "https://www.site3.com/"), | 131 TitleURL("Site 3", "https://www.site3.com/"), |
| 132 TitleURL("Site 4", "https://www.site4.com/"), | 132 TitleURL("Site 4", "https://www.site4.com/"), |
| 133 TitleURL("Site 1", "https://www.site1.com/"), | 133 TitleURL("Site 1", "https://www.site1.com/"), |
| 134 TitleURL("Site 2", "https://www.site2.com/"), | 134 TitleURL("Site 2", "https://www.site2.com/"), |
| 135 }; | 135 }; |
| 136 std::vector<bool> expected_sites_source{true, true, false, false}; | 136 std::vector<bool> expected_sites_source{true, true, false, false}; |
| 137 Check(popular_sites, std::vector<TitleURL>(), personal_sites, | 137 Check(popular_sites, std::vector<TitleURL>(), personal_sites, |
| 138 expected_sites_source, expected_sites); | 138 expected_sites_source, expected_sites); |
| 139 } | 139 } |
| OLD | NEW |