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

Side by Side Diff: chrome/browser/autocomplete/shortcuts_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/shortcuts_provider.h" 5 #include "chrome/browser/autocomplete/shortcuts_provider.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <functional> 10 #include <functional>
(...skipping 19 matching lines...) Expand all
30 #include "chrome/browser/history/url_database.h" 30 #include "chrome/browser/history/url_database.h"
31 #include "chrome/common/pref_names.h" 31 #include "chrome/common/pref_names.h"
32 #include "chrome/test/base/testing_profile.h" 32 #include "chrome/test/base/testing_profile.h"
33 #include "content/public/browser/notification_service.h" 33 #include "content/public/browser/notification_service.h"
34 #include "content/public/test/test_browser_thread.h" 34 #include "content/public/test/test_browser_thread.h"
35 #include "extensions/common/extension.h" 35 #include "extensions/common/extension.h"
36 #include "extensions/common/extension_builder.h" 36 #include "extensions/common/extension_builder.h"
37 #include "extensions/common/value_builder.h" 37 #include "extensions/common/value_builder.h"
38 #include "testing/gtest/include/gtest/gtest.h" 38 #include "testing/gtest/include/gtest/gtest.h"
39 39
40 using base::ASCIIToUTF16;
40 41
41 // TestShortcutInfo ----------------------------------------------------------- 42 // TestShortcutInfo -----------------------------------------------------------
42 43
43 namespace { 44 namespace {
44 45
45 struct TestShortcutInfo { 46 struct TestShortcutInfo {
46 std::string guid; 47 std::string guid;
47 std::string text; 48 std::string text;
48 std::string fill_into_edit; 49 std::string fill_into_edit;
49 std::string destination_url; 50 std::string destination_url;
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after
766 content::NotificationService::current()->Notify( 767 content::NotificationService::current()->Notify(
767 chrome::NOTIFICATION_EXTENSION_UNLOADED, 768 chrome::NOTIFICATION_EXTENSION_UNLOADED,
768 content::Source<Profile>(&profile_), 769 content::Source<Profile>(&profile_),
769 content::Details<extensions::UnloadedExtensionInfo>(&details)); 770 content::Details<extensions::UnloadedExtensionInfo>(&details));
770 771
771 // Now the URL should have disappeared. 772 // Now the URL should have disappeared.
772 RunTest(text, false, ExpectedURLs(), std::string(), base::string16()); 773 RunTest(text, false, ExpectedURLs(), std::string(), base::string16());
773 } 774 }
774 775
775 } // namespace history 776 } // namespace history
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/shortcuts_provider.cc ('k') | chrome/browser/autocomplete/url_prefix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698