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

Side by Side Diff: components/omnibox/autocomplete_input_unittest.cc

Issue 443043003: Rename components/autocomplete to components/omnibox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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
« no previous file with comments | « components/omnibox/autocomplete_input.cc ('k') | components/omnibox/autocomplete_match.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 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/autocomplete/autocomplete_input.h" 5 #include "components/omnibox/autocomplete_input.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
11 #include "components/autocomplete/test_scheme_classifier.h"
12 #include "components/metrics/proto/omnibox_event.pb.h" 11 #include "components/metrics/proto/omnibox_event.pb.h"
13 #include "components/metrics/proto/omnibox_input_type.pb.h" 12 #include "components/metrics/proto/omnibox_input_type.pb.h"
13 #include "components/omnibox/test_scheme_classifier.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 #include "url/url_parse.h" 15 #include "url/url_parse.h"
16 #include "url/url_util.h" 16 #include "url/url_util.h"
17 17
18 using base::ASCIIToUTF16; 18 using base::ASCIIToUTF16;
19 using metrics::OmniboxEventProto; 19 using metrics::OmniboxEventProto;
20 20
21 TEST(AutocompleteInputTest, InputType) { 21 TEST(AutocompleteInputTest, InputType) {
22 // TODO(mukai): Fix this scheme setup. 22 // TODO(mukai): Fix this scheme setup.
23 url::AddStandardScheme("chrome"); 23 url::AddStandardScheme("chrome");
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 AutocompleteInput input(input_cases[i].input, 277 AutocompleteInput input(input_cases[i].input,
278 input_cases[i].cursor_position, 278 input_cases[i].cursor_position,
279 base::string16(), GURL(), 279 base::string16(), GURL(),
280 OmniboxEventProto::INVALID_SPEC, 280 OmniboxEventProto::INVALID_SPEC,
281 true, false, true, true, TestSchemeClassifier()); 281 true, false, true, true, TestSchemeClassifier());
282 EXPECT_EQ(input_cases[i].normalized_input, input.text()); 282 EXPECT_EQ(input_cases[i].normalized_input, input.text());
283 EXPECT_EQ(input_cases[i].normalized_cursor_position, 283 EXPECT_EQ(input_cases[i].normalized_cursor_position,
284 input.cursor_position()); 284 input.cursor_position());
285 } 285 }
286 } 286 }
OLDNEW
« no previous file with comments | « components/omnibox/autocomplete_input.cc ('k') | components/omnibox/autocomplete_match.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698