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

Side by Side Diff: chrome/browser/profiles/profile_info_cache_unittest.cc

Issue 102993018: Remove UTF string conversion functions from the global namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: aaaaaaaaaa 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/profiles/profile_info_cache_unittest.h" 5 #include "chrome/browser/profiles/profile_info_cache_unittest.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/prefs/testing_pref_service.h" 9 #include "base/prefs/testing_pref_service.h"
10 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
11 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
12 #include "chrome/browser/browser_process.h" 12 #include "chrome/browser/browser_process.h"
13 #include "chrome/browser/chrome_notification_types.h" 13 #include "chrome/browser/chrome_notification_types.h"
14 #include "chrome/browser/prefs/pref_service_syncable.h" 14 #include "chrome/browser/prefs/pref_service_syncable.h"
15 #include "chrome/browser/profiles/profile_info_cache.h" 15 #include "chrome/browser/profiles/profile_info_cache.h"
16 #include "chrome/browser/profiles/profile_manager.h" 16 #include "chrome/browser/profiles/profile_manager.h"
17 #include "chrome/test/base/testing_browser_process.h" 17 #include "chrome/test/base/testing_browser_process.h"
18 #include "content/public/browser/notification_observer.h" 18 #include "content/public/browser/notification_observer.h"
19 #include "content/public/browser/notification_registrar.h" 19 #include "content/public/browser/notification_registrar.h"
20 #include "content/public/browser/notification_service.h" 20 #include "content/public/browser/notification_service.h"
21 #include "content/public/test/test_browser_thread_bundle.h" 21 #include "content/public/test/test_browser_thread_bundle.h"
22 #include "content/public/test/test_utils.h" 22 #include "content/public/test/test_utils.h"
23 #include "third_party/skia/include/core/SkBitmap.h" 23 #include "third_party/skia/include/core/SkBitmap.h"
24 #include "ui/base/resource/resource_bundle.h" 24 #include "ui/base/resource/resource_bundle.h"
25 #include "ui/gfx/image/image.h" 25 #include "ui/gfx/image/image.h"
26 #include "ui/gfx/image/image_unittest_util.h" 26 #include "ui/gfx/image/image_unittest_util.h"
27 27
28 using base::ASCIIToUTF16; 28 using base::ASCIIToUTF16;
29 using base::UTF8ToUTF16;
29 using content::BrowserThread; 30 using content::BrowserThread;
30 31
31 ProfileNameVerifierObserver::ProfileNameVerifierObserver( 32 ProfileNameVerifierObserver::ProfileNameVerifierObserver(
32 TestingProfileManager* testing_profile_manager) 33 TestingProfileManager* testing_profile_manager)
33 : testing_profile_manager_(testing_profile_manager) { 34 : testing_profile_manager_(testing_profile_manager) {
34 DCHECK(testing_profile_manager_); 35 DCHECK(testing_profile_manager_);
35 } 36 }
36 37
37 ProfileNameVerifierObserver::~ProfileNameVerifierObserver() { 38 ProfileNameVerifierObserver::~ProfileNameVerifierObserver() {
38 } 39 }
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 501
501 ASSERT_EQ(4U, GetCache()->GetNumberOfProfiles()); 502 ASSERT_EQ(4U, GetCache()->GetNumberOfProfiles());
502 503
503 // Check that the profiles can be extracted from the local state. 504 // Check that the profiles can be extracted from the local state.
504 std::vector<base::string16> names = ProfileInfoCache::GetProfileNames(); 505 std::vector<base::string16> names = ProfileInfoCache::GetProfileNames();
505 for (size_t i = 0; i < 4; i++) 506 for (size_t i = 0; i < 4; i++)
506 ASSERT_FALSE(names[i].empty()); 507 ASSERT_FALSE(names[i].empty());
507 } 508 }
508 509
509 } // namespace 510 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698