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

Side by Side Diff: chrome/browser/autocomplete/bookmark_provider_unittest.cc

Issue 18878007: Omnibox: Make the Controller Reorder Matches for Inlining (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/autocomplete/bookmark_provider.h" 5 #include "chrome/browser/autocomplete/bookmark_provider.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 if (j >= query_data[i].match_count) 331 if (j >= query_data[i].match_count)
332 continue; 332 continue;
333 EXPECT_LT(j, matches.size()) << " Missing match '" 333 EXPECT_LT(j, matches.size()) << " Missing match '"
334 << query_data[i].matches[j] << "' for query: '" 334 << query_data[i].matches[j] << "' for query: '"
335 << query_data[i].query << "'."; 335 << query_data[i].query << "'.";
336 if (j >= matches.size()) 336 if (j >= matches.size())
337 continue; 337 continue;
338 EXPECT_EQ(query_data[i].matches[j], UTF16ToUTF8(matches[j].description)) 338 EXPECT_EQ(query_data[i].matches[j], UTF16ToUTF8(matches[j].description))
339 << " Mismatch at [" << base::IntToString(j) << "] for query '" 339 << " Mismatch at [" << base::IntToString(j) << "] for query '"
340 << query_data[i].query << "'."; 340 << query_data[i].query << "'.";
341 EXPECT_FALSE(matches[j].allowed_to_be_default_match);
341 } 342 }
342 } 343 }
343 } 344 }
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_result_unittest.cc ('k') | chrome/browser/autocomplete/builtin_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698