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

Side by Side Diff: chrome/browser/search_engines/template_url_model_unittest.cc

Issue 3447008: base: Finish moving the SplitString functions from string_util.h to string_split.h (Closed) Base URL: git://git.chromium.org/chromium.git
Patch Set: chromeos fixes Created 10 years, 3 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 | « chrome/browser/safe_browsing/protocol_parser.cc ('k') | chrome/browser/spellcheck_host.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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "base/callback.h" 5 #include "base/callback.h"
6 #include "base/scoped_vector.h" 6 #include "base/scoped_vector.h"
7 #include "base/string_split.h"
7 #include "base/string_util.h" 8 #include "base/string_util.h"
8 #include "base/ref_counted.h" 9 #include "base/ref_counted.h"
9 #include "base/thread.h" 10 #include "base/thread.h"
10 #include "chrome/browser/chrome_thread.h" 11 #include "chrome/browser/chrome_thread.h"
11 #include "chrome/browser/history/history.h" 12 #include "chrome/browser/history/history.h"
12 #include "chrome/browser/history/history_notifications.h" 13 #include "chrome/browser/history/history_notifications.h"
13 #include "chrome/browser/search_engines/search_host_to_urls_map.h" 14 #include "chrome/browser/search_engines/search_host_to_urls_map.h"
14 #include "chrome/browser/search_engines/search_terms_data.h" 15 #include "chrome/browser/search_engines/search_terms_data.h"
15 #include "chrome/browser/search_engines/template_url.h" 16 #include "chrome/browser/search_engines/template_url.h"
16 #include "chrome/browser/search_engines/template_url_model.h" 17 #include "chrome/browser/search_engines/template_url_model.h"
(...skipping 958 matching lines...) Expand 10 before | Expand all | Expand 10 after
975 // the default search as managed. 976 // the default search as managed.
976 TEST_F(TemplateURLModelTest, ReportDefaultSearchIsManaged) { 977 TEST_F(TemplateURLModelTest, ReportDefaultSearchIsManaged) {
977 TestingPrefService* service = profile()->GetTestingPrefService(); 978 TestingPrefService* service = profile()->GetTestingPrefService();
978 service->RegisterStringPref(prefs::kDefaultSearchProviderSearchURL, 979 service->RegisterStringPref(prefs::kDefaultSearchProviderSearchURL,
979 std::string()); 980 std::string());
980 service->SetManagedPref(prefs::kDefaultSearchProviderSearchURL, 981 service->SetManagedPref(prefs::kDefaultSearchProviderSearchURL,
981 Value::CreateStringValue("http://test.com/{searchTerms}")); 982 Value::CreateStringValue("http://test.com/{searchTerms}"));
982 ASSERT_TRUE(model()->IsDefaultSearchManaged()); 983 ASSERT_TRUE(model()->IsDefaultSearchManaged());
983 } 984 }
984 985
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/protocol_parser.cc ('k') | chrome/browser/spellcheck_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698