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

Side by Side Diff: chrome/browser/autofill/autofill_profile_unittest.cc

Issue 3058027: Add #include utf_string_conversions.h to all files that use ASCIIToWide and... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 4 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/scoped_ptr.h" 6 #include "base/scoped_ptr.h"
7 #include "base/stl_util-inl.h" 7 #include "base/stl_util-inl.h"
8 #include "base/string16.h" 8 #include "base/string16.h"
9 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/autofill/autofill_common_unittest.h" 10 #include "chrome/browser/autofill/autofill_common_unittest.h"
10 #include "chrome/browser/autofill/autofill_profile.h" 11 #include "chrome/browser/autofill/autofill_profile.h"
11 #include "grit/generated_resources.h" 12 #include "grit/generated_resources.h"
12 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
13 14
14 namespace { 15 namespace {
15 16
16 // Tests different possibilities for summary string generation. 17 // Tests different possibilities for summary string generation.
17 // Based on existence of first name, last name, and address line 1. 18 // Based on existence of first name, last name, and address line 1.
18 TEST(AutoFillProfileTest, PreviewSummaryString) { 19 TEST(AutoFillProfileTest, PreviewSummaryString) {
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 AutoFillProfile expected_a; 361 AutoFillProfile expected_a;
361 autofill_unittest::SetProfileInfo(&expected_a, "label1", "Jimmy", NULL, 362 autofill_unittest::SetProfileInfo(&expected_a, "label1", "Jimmy", NULL,
362 "Madison", "constitutionalist@gmail.com", "United States Government", 363 "Madison", "constitutionalist@gmail.com", "United States Government",
363 "Monticello", NULL, "Charlottesville", "Virginia", "22902", NULL, 364 "Monticello", NULL, "Charlottesville", "Virginia", "22902", NULL,
364 "12134759123", "19384284720"); 365 "12134759123", "19384284720");
365 EXPECT_EQ(expected_a, *a); 366 EXPECT_EQ(expected_a, *a);
366 EXPECT_EQ(expected_b, *b); 367 EXPECT_EQ(expected_b, *b);
367 } 368 }
368 369
369 } // namespace 370 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_manager_unittest.cc ('k') | chrome/browser/autofill/contact_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698