OLD | NEW |
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 "chrome/browser/search/instant_service.h" | 5 #include "chrome/browser/search/instant_service.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <string> | 8 #include <string> |
9 #include <tuple> | 9 #include <tuple> |
10 #include <vector> | 10 #include <vector> |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 } | 176 } |
177 | 177 |
178 TEST_F(InstantServiceTest, GetSuggestionFromClientSide) { | 178 TEST_F(InstantServiceTest, GetSuggestionFromClientSide) { |
179 history::MostVisitedURLList url_list; | 179 history::MostVisitedURLList url_list; |
180 url_list.push_back(history::MostVisitedURL()); | 180 url_list.push_back(history::MostVisitedURL()); |
181 | 181 |
182 instant_service_->OnTopSitesReceived(url_list); | 182 instant_service_->OnTopSitesReceived(url_list); |
183 | 183 |
184 auto items = instant_service_->most_visited_items_; | 184 auto items = instant_service_->most_visited_items_; |
185 ASSERT_EQ(1, (int)items.size()); | 185 ASSERT_EQ(1, (int)items.size()); |
186 ASSERT_EQ(ntp_tiles::NTPTileSource::TOP_SITES, items[0].source); | 186 ASSERT_EQ(ntp_tiles::TileSource::TOP_SITES, items[0].source); |
187 } | 187 } |
OLD | NEW |