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

Side by Side Diff: components/autofill/core/browser/personal_data_manager_unittest.cc

Issue 112433004: Update uses of UTF conversions in chrome_frame/, chromeos/, components/ to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 <string> 5 #include <string>
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/guid.h" 8 #include "base/guid.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
11 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
12 #include "base/synchronization/waitable_event.h" 12 #include "base/synchronization/waitable_event.h"
13 #include "chrome/test/base/testing_profile.h" 13 #include "chrome/test/base/testing_profile.h"
14 #include "components/autofill/core/browser/autofill_metrics.h" 14 #include "components/autofill/core/browser/autofill_metrics.h"
15 #include "components/autofill/core/browser/autofill_profile.h" 15 #include "components/autofill/core/browser/autofill_profile.h"
16 #include "components/autofill/core/browser/autofill_test_utils.h" 16 #include "components/autofill/core/browser/autofill_test_utils.h"
17 #include "components/autofill/core/browser/form_structure.h" 17 #include "components/autofill/core/browser/form_structure.h"
18 #include "components/autofill/core/browser/personal_data_manager.h" 18 #include "components/autofill/core/browser/personal_data_manager.h"
19 #include "components/autofill/core/browser/personal_data_manager_observer.h" 19 #include "components/autofill/core/browser/personal_data_manager_observer.h"
20 #include "components/autofill/core/browser/webdata/autofill_table.h" 20 #include "components/autofill/core/browser/webdata/autofill_table.h"
21 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" 21 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
22 #include "components/autofill/core/common/form_data.h" 22 #include "components/autofill/core/common/form_data.h"
23 #include "components/webdata/common/web_data_service_base.h" 23 #include "components/webdata/common/web_data_service_base.h"
24 #include "components/webdata/common/web_database_service.h" 24 #include "components/webdata/common/web_database_service.h"
25 #include "components/webdata/encryptor/encryptor.h" 25 #include "components/webdata/encryptor/encryptor.h"
26 #include "content/public/test/test_browser_thread.h" 26 #include "content/public/test/test_browser_thread.h"
27 #include "testing/gmock/include/gmock/gmock.h" 27 #include "testing/gmock/include/gmock/gmock.h"
28 #include "testing/gtest/include/gtest/gtest.h" 28 #include "testing/gtest/include/gtest/gtest.h"
29 29
30 using base::ASCIIToUTF16;
31
30 using content::BrowserThread; 32 using content::BrowserThread;
31 33
32 namespace autofill { 34 namespace autofill {
33 namespace { 35 namespace {
34 36
35 ACTION(QuitUIMessageLoop) { 37 ACTION(QuitUIMessageLoop) {
36 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 38 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
37 base::MessageLoop::current()->Quit(); 39 base::MessageLoop::current()->Quit();
38 } 40 }
39 41
(...skipping 2508 matching lines...) Expand 10 before | Expand all | Expand 10 after
2548 AutofillProfile space_invader(base::GenerateGUID(), "Chrome settings"); 2550 AutofillProfile space_invader(base::GenerateGUID(), "Chrome settings");
2549 test::SetProfileInfo(&space_invader, "Marty", "", "Martian", 2551 test::SetProfileInfo(&space_invader, "Marty", "", "Martian",
2550 "mm@example.com", "", "1 Flying Object", "", "Valles Marineris", "", 2552 "mm@example.com", "", "1 Flying Object", "", "Valles Marineris", "",
2551 "", "XX", ""); 2553 "", "XX", "");
2552 personal_data_->AddProfile(moose); 2554 personal_data_->AddProfile(moose);
2553 ResetPersonalDataManager(); 2555 ResetPersonalDataManager();
2554 EXPECT_EQ("MX", personal_data_->GetDefaultCountryCodeForNewAddress()); 2556 EXPECT_EQ("MX", personal_data_->GetDefaultCountryCodeForNewAddress());
2555 } 2557 }
2556 2558
2557 } // namespace autofill 2559 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/core/browser/personal_data_manager.cc ('k') | components/autofill/core/browser/phone_field.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698