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

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

Issue 109013006: Update some uses of UTF conversions in chrome/browser to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 6 years, 12 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/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::ASCIIToUTF16;
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 base::string16 input; 23 const base::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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 {kSettings + kPage1.substr(0, 2), 1, {kURL1}}, 219 {kSettings + kPage1.substr(0, 2), 1, {kURL1}},
218 {kSettings + kPage1.substr(0, kPage1.length() - 1), 1, {kURL1}}, 220 {kSettings + kPage1.substr(0, kPage1.length() - 1), 1, {kURL1}},
219 {kSettings + kPage1, 1, {kURL1}}, 221 {kSettings + kPage1, 1, {kURL1}},
220 {kSettings + kPage2, 1, {kURL2}}, 222 {kSettings + kPage2, 1, {kURL2}},
221 }; 223 };
222 224
223 RunTest<GURL>(settings_subpage_cases, arraysize(settings_subpage_cases), 225 RunTest<GURL>(settings_subpage_cases, arraysize(settings_subpage_cases),
224 &AutocompleteMatch::destination_url); 226 &AutocompleteMatch::destination_url);
225 } 227 }
226 #endif 228 #endif
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/builtin_provider.cc ('k') | chrome/browser/autocomplete/contact_provider_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698