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

Side by Side Diff: components/autofill/content/browser/wallet/wallet_address_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 "base/json/json_reader.h" 5 #include "base/json/json_reader.h"
6 #include "base/logging.h" 6 #include "base/logging.h"
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "components/autofill/content/browser/wallet/wallet_address.h" 10 #include "components/autofill/content/browser/wallet/wallet_address.h"
11 #include "components/autofill/core/browser/autofill_profile.h" 11 #include "components/autofill/core/browser/autofill_profile.h"
12 #include "components/autofill/core/browser/autofill_test_utils.h" 12 #include "components/autofill/core/browser/autofill_test_utils.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 14
15 using base::ASCIIToUTF16;
16
15 namespace { 17 namespace {
16 18
17 const char kAddressMissingObjectId[] = 19 const char kAddressMissingObjectId[] =
18 "{" 20 "{"
19 " \"phone_number\":\"phone_number\"," 21 " \"phone_number\":\"phone_number\","
20 " \"postal_address\":" 22 " \"postal_address\":"
21 " {" 23 " {"
22 " \"recipient_name\":\"recipient_name\"," 24 " \"recipient_name\":\"recipient_name\","
23 " \"address_line\":" 25 " \"address_line\":"
24 " [" 26 " ["
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 ASCIIToUTF16("locality_name"), 471 ASCIIToUTF16("locality_name"),
470 ASCIIToUTF16("administrative_area_name"), 472 ASCIIToUTF16("administrative_area_name"),
471 ASCIIToUTF16("postal_code_number"), 473 ASCIIToUTF16("postal_code_number"),
472 ASCIIToUTF16("phone_number"), 474 ASCIIToUTF16("phone_number"),
473 "id1"); 475 "id1");
474 EXPECT_EQ(base::string16(), address3.GetInfo(type, "en-US")); 476 EXPECT_EQ(base::string16(), address3.GetInfo(type, "en-US"));
475 } 477 }
476 478
477 } // namespace wallet 479 } // namespace wallet
478 } // namespace autofill 480 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698