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

Side by Side Diff: components/omnibox/browser/autocomplete_input_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_input.h" 5 #include "components/omnibox/browser/autocomplete_input.h"
6 6
7 #include "base/basictypes.h" 7 #include <stddef.h>
8
9 #include "base/macros.h"
8 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
9 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
10 #include "build/build_config.h" 12 #include "build/build_config.h"
11 #include "components/metrics/proto/omnibox_event.pb.h" 13 #include "components/metrics/proto/omnibox_event.pb.h"
12 #include "components/metrics/proto/omnibox_input_type.pb.h" 14 #include "components/metrics/proto/omnibox_input_type.pb.h"
13 #include "components/omnibox/browser/test_scheme_classifier.h" 15 #include "components/omnibox/browser/test_scheme_classifier.h"
14 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
15 #include "url/third_party/mozilla/url_parse.h" 17 #include "url/third_party/mozilla/url_parse.h"
16 18
17 using base::ASCIIToUTF16; 19 using base::ASCIIToUTF16;
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 SCOPED_TRACE(input_cases[i].input); 306 SCOPED_TRACE(input_cases[i].input);
305 AutocompleteInput input(input_cases[i].input, 307 AutocompleteInput input(input_cases[i].input,
306 input_cases[i].cursor_position, std::string(), 308 input_cases[i].cursor_position, std::string(),
307 GURL(), OmniboxEventProto::INVALID_SPEC, true, 309 GURL(), OmniboxEventProto::INVALID_SPEC, true,
308 false, true, true, false, TestSchemeClassifier()); 310 false, true, true, false, TestSchemeClassifier());
309 EXPECT_EQ(input_cases[i].normalized_input, input.text()); 311 EXPECT_EQ(input_cases[i].normalized_input, input.text());
310 EXPECT_EQ(input_cases[i].normalized_cursor_position, 312 EXPECT_EQ(input_cases[i].normalized_cursor_position,
311 input.cursor_position()); 313 input.cursor_position());
312 } 314 }
313 } 315 }
OLDNEW
« no previous file with comments | « components/omnibox/browser/autocomplete_input.cc ('k') | components/omnibox/browser/autocomplete_match.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698