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

Side by Side Diff: components/omnibox/browser/autocomplete_match_unittest.cc

Issue 1551433002: Switch to standard integer types in components/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 4 years, 11 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "components/omnibox/browser/autocomplete_match.h" 5 #include "components/omnibox/browser/autocomplete_match.h"
6 6
7 #include "base/basictypes.h" 7 #include <stddef.h>
8
9 #include "base/macros.h"
8 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
9 #include "components/omnibox/browser/test_scheme_classifier.h" 11 #include "components/omnibox/browser/test_scheme_classifier.h"
10 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
11 13
12 TEST(AutocompleteMatchTest, MoreRelevant) { 14 TEST(AutocompleteMatchTest, MoreRelevant) {
13 struct RelevantCases { 15 struct RelevantCases {
14 int r1; 16 int r1;
15 int r2; 17 int r2;
16 bool expected_result; 18 bool expected_result;
17 } cases[] = { 19 } cases[] = {
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 m1.destination_url = GURL(cases[i].url1); 194 m1.destination_url = GURL(cases[i].url1);
193 m1.ComputeStrippedDestinationURL(input, "zh-CN", NULL); 195 m1.ComputeStrippedDestinationURL(input, "zh-CN", NULL);
194 AutocompleteMatch m2(NULL, 100, false, 196 AutocompleteMatch m2(NULL, 100, false,
195 AutocompleteMatchType::URL_WHAT_YOU_TYPED); 197 AutocompleteMatchType::URL_WHAT_YOU_TYPED);
196 m2.destination_url = GURL(cases[i].url2); 198 m2.destination_url = GURL(cases[i].url2);
197 m2.ComputeStrippedDestinationURL(input, "zh-CN", NULL); 199 m2.ComputeStrippedDestinationURL(input, "zh-CN", NULL);
198 EXPECT_EQ(cases[i].expected_duplicate, 200 EXPECT_EQ(cases[i].expected_duplicate,
199 AutocompleteMatch::DestinationsEqual(m1, m2)); 201 AutocompleteMatch::DestinationsEqual(m1, m2));
200 } 202 }
201 } 203 }
OLDNEW
« no previous file with comments | « components/omnibox/browser/autocomplete_match_type.cc ('k') | components/omnibox/browser/autocomplete_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698