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

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

Issue 105193002: Replace string16 with base::string16. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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/builtin_provider.h" 5 #include "chrome/browser/autocomplete/builtin_provider.h"
6 6
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "chrome/browser/autocomplete/autocomplete_input.h" 9 #include "chrome/browser/autocomplete/autocomplete_input.h"
10 #include "chrome/browser/autocomplete/autocomplete_match.h" 10 #include "chrome/browser/autocomplete/autocomplete_match.h"
11 #include "chrome/browser/autocomplete/autocomplete_provider.h" 11 #include "chrome/browser/autocomplete/autocomplete_provider.h"
12 #include "chrome/common/url_constants.h" 12 #include "chrome/common/url_constants.h"
13 #include "chrome/test/base/testing_browser_process.h" 13 #include "chrome/test/base/testing_browser_process.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 #include "url/gurl.h" 15 #include "url/gurl.h"
16 16
17 using base::string16;
18
17 class BuiltinProviderTest : public testing::Test { 19 class BuiltinProviderTest : public testing::Test {
18 protected: 20 protected:
19 template<class ResultType> 21 template<class ResultType>
20 struct test_data { 22 struct test_data {
21 const string16 input; 23 const string16 input;
22 const size_t num_results; 24 const size_t num_results;
23 const ResultType output[3]; 25 const ResultType output[3];
24 }; 26 };
25 27
26 BuiltinProviderTest() : builtin_provider_(NULL) {} 28 BuiltinProviderTest() : builtin_provider_(NULL) {}
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 {kSettings + kPage1.substr(0, 2), 1, {kURL1}}, 212 {kSettings + kPage1.substr(0, 2), 1, {kURL1}},
211 {kSettings + kPage1.substr(0, kPage1.length() - 1), 1, {kURL1}}, 213 {kSettings + kPage1.substr(0, kPage1.length() - 1), 1, {kURL1}},
212 {kSettings + kPage1, 1, {kURL1}}, 214 {kSettings + kPage1, 1, {kURL1}},
213 {kSettings + kPage2, 1, {kURL2}}, 215 {kSettings + kPage2, 1, {kURL2}},
214 }; 216 };
215 217
216 RunTest<GURL>(settings_subpage_cases, arraysize(settings_subpage_cases), 218 RunTest<GURL>(settings_subpage_cases, arraysize(settings_subpage_cases),
217 &AutocompleteMatch::destination_url); 219 &AutocompleteMatch::destination_url);
218 } 220 }
219 #endif 221 #endif
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/builtin_provider.cc ('k') | chrome/browser/autocomplete/contact_provider_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698