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

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

Issue 489353004: Componentize SearchProvider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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/search_provider.h" 5 #include "components/omnibox/search_provider.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/metrics/field_trial.h" 10 #include "base/metrics/field_trial.h"
11 #include "base/prefs/pref_service.h" 11 #include "base/prefs/pref_service.h"
12 #include "base/run_loop.h" 12 #include "base/run_loop.h"
13 #include "base/strings/string16.h" 13 #include "base/strings/string16.h"
14 #include "base/strings/string_number_conversions.h" 14 #include "base/strings/string_number_conversions.h"
15 #include "base/strings/string_util.h" 15 #include "base/strings/string_util.h"
(...skipping 3243 matching lines...) Expand 10 before | Expand all | Expand 10 after
3259 AutocompleteInput input(base::ASCIIToUTF16("weather l"), 3259 AutocompleteInput input(base::ASCIIToUTF16("weather l"),
3260 base::string16::npos, base::string16(), GURL(), 3260 base::string16::npos, base::string16(), GURL(),
3261 metrics::OmniboxEventProto::INVALID_SPEC, false, 3261 metrics::OmniboxEventProto::INVALID_SPEC, false,
3262 false, true, true, 3262 false, true, true,
3263 ChromeAutocompleteSchemeClassifier(&profile_)); 3263 ChromeAutocompleteSchemeClassifier(&profile_));
3264 provider_->DoAnswersQuery(input); 3264 provider_->DoAnswersQuery(input);
3265 EXPECT_EQ(base::ASCIIToUTF16("weather los angeles"), 3265 EXPECT_EQ(base::ASCIIToUTF16("weather los angeles"),
3266 provider_->prefetch_data_.full_query_text); 3266 provider_->prefetch_data_.full_query_text);
3267 EXPECT_EQ(base::ASCIIToUTF16("2334"), provider_->prefetch_data_.query_type); 3267 EXPECT_EQ(base::ASCIIToUTF16("2334"), provider_->prefetch_data_.query_type);
3268 } 3268 }
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/search_provider.cc ('k') | chrome/browser/autocomplete/shortcuts_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698