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

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

Issue 10500016: Move test_browser_thread.h from content\test to content\public\test. This way we can enforce that i… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "chrome/browser/autocomplete/search_provider.h"
6 6
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "base/time.h" 8 #include "base/time.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
11 #include "chrome/browser/autocomplete/autocomplete.h" 11 #include "chrome/browser/autocomplete/autocomplete.h"
12 #include "chrome/browser/autocomplete/autocomplete_match.h" 12 #include "chrome/browser/autocomplete/autocomplete_match.h"
13 #include "chrome/browser/history/history.h" 13 #include "chrome/browser/history/history.h"
14 #include "chrome/browser/prefs/pref_service.h" 14 #include "chrome/browser/prefs/pref_service.h"
15 #include "chrome/browser/search_engines/template_url.h" 15 #include "chrome/browser/search_engines/template_url.h"
16 #include "chrome/browser/search_engines/template_url_service.h" 16 #include "chrome/browser/search_engines/template_url_service.h"
17 #include "chrome/browser/search_engines/template_url_service_factory.h" 17 #include "chrome/browser/search_engines/template_url_service_factory.h"
18 #include "chrome/common/pref_names.h" 18 #include "chrome/common/pref_names.h"
19 #include "chrome/test/base/testing_browser_process.h" 19 #include "chrome/test/base/testing_browser_process.h"
20 #include "chrome/test/base/testing_profile.h" 20 #include "chrome/test/base/testing_profile.h"
21 #include "content/test/test_browser_thread.h" 21 #include "content/public/test/test_browser_thread.h"
22 #include "content/test/test_url_fetcher_factory.h" 22 #include "content/test/test_url_fetcher_factory.h"
23 #include "net/url_request/url_request_status.h" 23 #include "net/url_request/url_request_status.h"
24 #include "testing/gtest/include/gtest/gtest.h" 24 #include "testing/gtest/include/gtest/gtest.h"
25 25
26 using content::BrowserThread; 26 using content::BrowserThread;
27 27
28 // The following environment is configured for these tests: 28 // The following environment is configured for these tests:
29 // . The TemplateURL default_t_url_ is set as the default provider. 29 // . The TemplateURL default_t_url_ is set as the default provider.
30 // . The TemplateURL keyword_t_url_ is added to the TemplateURLService. This 30 // . The TemplateURL keyword_t_url_ is added to the TemplateURLService. This
31 // TemplateURL has a valid suggest and search URL. 31 // TemplateURL has a valid suggest and search URL.
(...skipping 861 matching lines...) Expand 10 before | Expand all | Expand 10 after
893 EXPECT_EQ(AutocompleteMatch::ACMatchClassification::URL, 893 EXPECT_EQ(AutocompleteMatch::ACMatchClassification::URL,
894 match.contents_class[0].style); 894 match.contents_class[0].style);
895 EXPECT_EQ(4U, match.contents_class[1].offset); 895 EXPECT_EQ(4U, match.contents_class[1].offset);
896 EXPECT_EQ(AutocompleteMatch::ACMatchClassification::URL | 896 EXPECT_EQ(AutocompleteMatch::ACMatchClassification::URL |
897 AutocompleteMatch::ACMatchClassification::MATCH, 897 AutocompleteMatch::ACMatchClassification::MATCH,
898 match.contents_class[1].style); 898 match.contents_class[1].style);
899 EXPECT_EQ(5U, match.contents_class[2].offset); 899 EXPECT_EQ(5U, match.contents_class[2].offset);
900 EXPECT_EQ(AutocompleteMatch::ACMatchClassification::URL, 900 EXPECT_EQ(AutocompleteMatch::ACMatchClassification::URL,
901 match.contents_class[2].style); 901 match.contents_class[2].style);
902 } 902 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698