OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/memory/scoped_ptr.h" | 6 #include "base/memory/scoped_ptr.h" |
7 #include "base/memory/scoped_vector.h" | 7 #include "base/memory/scoped_vector.h" |
8 #include "base/stl_util-inl.h" | 8 #include "base/stl_util.h" |
9 #include "base/string16.h" | 9 #include "base/string16.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
11 #include "chrome/browser/autofill/autofill_common_test.h" | 11 #include "chrome/browser/autofill/autofill_common_test.h" |
12 #include "chrome/browser/autofill/autofill_profile.h" | 12 #include "chrome/browser/autofill/autofill_profile.h" |
13 #include "chrome/common/guid.h" | 13 #include "chrome/common/guid.h" |
14 #include "grit/generated_resources.h" | 14 #include "grit/generated_resources.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 | 16 |
17 namespace { | 17 namespace { |
18 | 18 |
(...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
811 // Delete values. | 811 // Delete values. |
812 set_values.clear(); | 812 set_values.clear(); |
813 p.SetMultiInfo(PHONE_FAX_WHOLE_NUMBER, set_values); | 813 p.SetMultiInfo(PHONE_FAX_WHOLE_NUMBER, set_values); |
814 p.GetMultiInfo(PHONE_FAX_WHOLE_NUMBER, &get_values); | 814 p.GetMultiInfo(PHONE_FAX_WHOLE_NUMBER, &get_values); |
815 ASSERT_EQ(1UL, get_values.size()); | 815 ASSERT_EQ(1UL, get_values.size()); |
816 EXPECT_EQ(string16(), get_values[0]); | 816 EXPECT_EQ(string16(), get_values[0]); |
817 | 817 |
818 // Expect regular |GetInfo| returns empty value. | 818 // Expect regular |GetInfo| returns empty value. |
819 EXPECT_EQ(string16(), p.GetInfo(PHONE_FAX_WHOLE_NUMBER)); | 819 EXPECT_EQ(string16(), p.GetInfo(PHONE_FAX_WHOLE_NUMBER)); |
820 } | 820 } |
OLD | NEW |