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

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

Issue 2395533003: [Sync] Move some things from driver to base. (Closed)
Patch Set: Rebase. Created 4 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/extensions/external_provider_impl_chromeos_unittest.cc » ('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 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 "components/omnibox/browser/search_provider.h" 5 #include "components/omnibox/browser/search_provider.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 #include "components/omnibox/browser/omnibox_switches.h" 45 #include "components/omnibox/browser/omnibox_switches.h"
46 #include "components/omnibox/browser/suggestion_answer.h" 46 #include "components/omnibox/browser/suggestion_answer.h"
47 #include "components/prefs/pref_service.h" 47 #include "components/prefs/pref_service.h"
48 #include "components/search_engines/search_engine_type.h" 48 #include "components/search_engines/search_engine_type.h"
49 #include "components/search_engines/search_engines_switches.h" 49 #include "components/search_engines/search_engines_switches.h"
50 #include "components/search_engines/search_terms_data.h" 50 #include "components/search_engines/search_terms_data.h"
51 #include "components/search_engines/template_url.h" 51 #include "components/search_engines/template_url.h"
52 #include "components/search_engines/template_url_service.h" 52 #include "components/search_engines/template_url_service.h"
53 #include "components/signin/core/browser/account_tracker_service.h" 53 #include "components/signin/core/browser/account_tracker_service.h"
54 #include "components/signin/core/browser/signin_manager.h" 54 #include "components/signin/core/browser/signin_manager.h"
55 #include "components/sync/driver/pref_names.h" 55 #include "components/sync/base/pref_names.h"
56 #include "components/variations/entropy_provider.h" 56 #include "components/variations/entropy_provider.h"
57 #include "components/variations/variations_associated_data.h" 57 #include "components/variations/variations_associated_data.h"
58 #include "content/public/test/test_browser_thread_bundle.h" 58 #include "content/public/test/test_browser_thread_bundle.h"
59 #include "net/url_request/test_url_fetcher_factory.h" 59 #include "net/url_request/test_url_fetcher_factory.h"
60 #include "net/url_request/url_request_status.h" 60 #include "net/url_request/url_request_status.h"
61 #include "testing/gtest/include/gtest/gtest.h" 61 #include "testing/gtest/include/gtest/gtest.h"
62 62
63 using base::ASCIIToUTF16; 63 using base::ASCIIToUTF16;
64 64
65 namespace { 65 namespace {
(...skipping 3448 matching lines...) Expand 10 before | Expand all | Expand 10 after
3514 } 3514 }
3515 3515
3516 TEST_F(SearchProviderTest, DoesNotProvideOnFocus) { 3516 TEST_F(SearchProviderTest, DoesNotProvideOnFocus) {
3517 AutocompleteInput input( 3517 AutocompleteInput input(
3518 base::ASCIIToUTF16("f"), base::string16::npos, std::string(), GURL(), 3518 base::ASCIIToUTF16("f"), base::string16::npos, std::string(), GURL(),
3519 metrics::OmniboxEventProto::INVALID_SPEC, false, true, true, true, true, 3519 metrics::OmniboxEventProto::INVALID_SPEC, false, true, true, true, true,
3520 ChromeAutocompleteSchemeClassifier(&profile_)); 3520 ChromeAutocompleteSchemeClassifier(&profile_));
3521 provider_->Start(input, false); 3521 provider_->Start(input, false);
3522 EXPECT_TRUE(provider_->matches().empty()); 3522 EXPECT_TRUE(provider_->matches().empty());
3523 } 3523 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/external_provider_impl_chromeos_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698