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/utf_string_conversions.h" | 5 #include "base/utf_string_conversions.h" |
6 #include "chrome/browser/sync/engine/read_node_mock.h" | 6 #include "chrome/browser/sync/engine/read_node_mock.h" |
7 #include "chrome/browser/sync/engine/syncapi_mock.h" | 7 #include "chrome/browser/sync/engine/syncapi_mock.h" |
8 #include "chrome/browser/sync/glue/autofill_profile_model_associator.h" | 8 #include "chrome/browser/sync/glue/autofill_profile_model_associator.h" |
9 #include "chrome/browser/sync/syncable/syncable.h" | 9 #include "chrome/browser/sync/syncable/syncable.h" |
10 #include "chrome/browser/sync/syncable/syncable_mock.h" | 10 #include "chrome/browser/sync/syncable/syncable_mock.h" |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 | 247 |
248 EXPECT_CALL(associator_, | 248 EXPECT_CALL(associator_, |
249 Associate(Pointee(guid), 1)); | 249 Associate(Pointee(guid), 1)); |
250 | 250 |
251 associator_.AddNativeProfileIfNeededWrapper( | 251 associator_.AddNativeProfileIfNeededWrapper( |
252 profile_specifics, | 252 profile_specifics, |
253 &bundle, | 253 &bundle, |
254 read_node); | 254 read_node); |
255 | 255 |
256 EXPECT_EQ(bundle.new_profiles.size(), (unsigned int)1); | 256 EXPECT_EQ(bundle.new_profiles.size(), (unsigned int)1); |
257 EXPECT_EQ( | 257 EXPECT_EQ(bundle.new_profiles.front()->GetFieldText(NAME_FIRST), |
258 bundle.new_profiles.front()->GetFieldText(AutofillType(NAME_FIRST)), | 258 UTF8ToUTF16(first_name)); |
259 UTF8ToUTF16(first_name)); | |
260 } | 259 } |
261 | 260 |
OLD | NEW |