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

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

Issue 2203673002: [Sync] Move //components/sync_driver to //components/sync/driver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sd-a
Patch Set: Full change rebased on static lib. Created 4 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 "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/driver/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 3452 matching lines...) Expand 10 before | Expand all | Expand 10 after
3518 } 3518 }
3519 3519
3520 TEST_F(SearchProviderTest, DoesNotProvideOnFocus) { 3520 TEST_F(SearchProviderTest, DoesNotProvideOnFocus) {
3521 AutocompleteInput input( 3521 AutocompleteInput input(
3522 base::ASCIIToUTF16("f"), base::string16::npos, std::string(), GURL(), 3522 base::ASCIIToUTF16("f"), base::string16::npos, std::string(), GURL(),
3523 metrics::OmniboxEventProto::INVALID_SPEC, false, true, true, true, true, 3523 metrics::OmniboxEventProto::INVALID_SPEC, false, true, true, true, true,
3524 ChromeAutocompleteSchemeClassifier(&profile_)); 3524 ChromeAutocompleteSchemeClassifier(&profile_));
3525 provider_->Start(input, false); 3525 provider_->Start(input, false);
3526 EXPECT_TRUE(provider_->matches().empty()); 3526 EXPECT_TRUE(provider_->matches().empty());
3527 } 3527 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698