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

Side by Side Diff: chrome/browser/search/instant_service_unittest.cc

Issue 2790463003: ntp_tiles: Cleanup enum names (Closed)
Patch Set: add back histogram enums Created 3 years, 8 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
« no previous file with comments | « chrome/browser/search/instant_service.cc ('k') | chrome/browser/ui/search/search_ipc_router.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/search/instant_service.cc ('k') | chrome/browser/ui/search/search_ipc_router.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698