| OLD | NEW |
| 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 "base/location.h" | 5 #include "base/location.h" |
| 6 #include "base/message_loop.h" | 6 #include "base/message_loop.h" |
| 7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
| 8 #include "chrome/browser/autofill/autofill_profile.h" | 8 #include "chrome/browser/autofill/autofill_profile.h" |
| 9 #include "chrome/browser/sync/api/sync_error_factory.h" | 9 #include "chrome/browser/sync/api/sync_error_factory.h" |
| 10 #include "chrome/browser/sync/api/sync_error_factory_mock.h" | 10 #include "chrome/browser/sync/api/sync_error_factory_mock.h" |
| 11 #include "chrome/browser/sync/internal_api/read_node_mock.h" | |
| 12 #include "chrome/browser/webdata/autofill_change.h" | 11 #include "chrome/browser/webdata/autofill_change.h" |
| 13 #include "chrome/browser/webdata/autofill_profile_syncable_service.h" | 12 #include "chrome/browser/webdata/autofill_profile_syncable_service.h" |
| 14 #include "content/test/test_browser_thread.h" | 13 #include "content/test/test_browser_thread.h" |
| 15 #include "sync/syncable/syncable.h" | 14 #include "sync/syncable/syncable.h" |
| 16 #include "testing/gmock/include/gmock/gmock.h" | 15 #include "testing/gmock/include/gmock/gmock.h" |
| 17 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 18 | 17 |
| 19 using ::testing::_; | 18 using ::testing::_; |
| 20 using ::testing::DoAll; | 19 using ::testing::DoAll; |
| 21 using ::testing::Eq; | 20 using ::testing::Eq; |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 profile1.GetMultiInfo(EMAIL_ADDRESS, &values); | 403 profile1.GetMultiInfo(EMAIL_ADDRESS, &values); |
| 405 ASSERT_EQ(values.size(), 3U); | 404 ASSERT_EQ(values.size(), 3U); |
| 406 EXPECT_EQ(values[0], UTF8ToUTF16("1@1.com")); | 405 EXPECT_EQ(values[0], UTF8ToUTF16("1@1.com")); |
| 407 EXPECT_EQ(values[1], UTF8ToUTF16("2@1.com")); | 406 EXPECT_EQ(values[1], UTF8ToUTF16("2@1.com")); |
| 408 EXPECT_EQ(values[2], UTF8ToUTF16("3@1.com")); | 407 EXPECT_EQ(values[2], UTF8ToUTF16("3@1.com")); |
| 409 | 408 |
| 410 profile1.GetMultiInfo(PHONE_HOME_WHOLE_NUMBER, &values); | 409 profile1.GetMultiInfo(PHONE_HOME_WHOLE_NUMBER, &values); |
| 411 ASSERT_EQ(values.size(), 1U); | 410 ASSERT_EQ(values.size(), 1U); |
| 412 EXPECT_EQ(values[0], UTF8ToUTF16("650234567")); | 411 EXPECT_EQ(values[0], UTF8ToUTF16("650234567")); |
| 413 } | 412 } |
| OLD | NEW |