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

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

Issue 7616019: Reorganize chrome/test, part #9 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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"
20 #include "chrome/test/base/testing_browser_process_test.h"
19 #include "chrome/test/base/testing_profile.h" 21 #include "chrome/test/base/testing_profile.h"
20 #include "chrome/test/testing_browser_process.h"
21 #include "chrome/test/testing_browser_process_test.h"
22 #include "content/browser/browser_thread.h" 22 #include "content/browser/browser_thread.h"
23 #include "content/test/test_url_fetcher_factory.h" 23 #include "content/test/test_url_fetcher_factory.h"
24 #include "net/url_request/url_request_status.h" 24 #include "net/url_request/url_request_status.h"
25 #include "testing/gtest/include/gtest/gtest.h" 25 #include "testing/gtest/include/gtest/gtest.h"
26 26
27 // The following environment is configured for these tests: 27 // The following environment is configured for these tests:
28 // . The TemplateURL default_t_url_ is set as the default provider. 28 // . The TemplateURL default_t_url_ is set as the default provider.
29 // . The TemplateURL keyword_t_url_ is added to the TemplateURLService. This 29 // . The TemplateURL keyword_t_url_ is added to the TemplateURLService. This
30 // TemplateURL has a valid suggest and search URL. 30 // TemplateURL has a valid suggest and search URL.
31 // . The URL created by using the search term term1_ with default_t_url_ is 31 // . The URL created by using the search term term1_ with default_t_url_ is
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 fetcher = NULL; 662 fetcher = NULL;
663 663
664 // Run till the history results complete. 664 // Run till the history results complete.
665 RunTillProviderDone(); 665 RunTillProviderDone();
666 666
667 // Make sure there is a match for 'a.com' and it doesn't have a template_url. 667 // Make sure there is a match for 'a.com' and it doesn't have a template_url.
668 AutocompleteMatch nav_match; 668 AutocompleteMatch nav_match;
669 EXPECT_TRUE(FindMatchWithDestination(GURL("http://a.com"), &nav_match)); 669 EXPECT_TRUE(FindMatchWithDestination(GURL("http://a.com"), &nav_match));
670 EXPECT_FALSE(nav_match.template_url); 670 EXPECT_FALSE(nav_match.template_url);
671 } 671 }
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/keyword_provider_unittest.cc ('k') | chrome/browser/autocomplete/shortcuts_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698