| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 <set> | 5 #include <set> |
| 6 #include <string> | 6 #include <string> |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 | 10 |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 | 358 |
| 359 class ProfileSyncServiceAutofillTest | 359 class ProfileSyncServiceAutofillTest |
| 360 : public AbstractProfileSyncServiceTest, | 360 : public AbstractProfileSyncServiceTest, |
| 361 public syncer::DataTypeDebugInfoListener { | 361 public syncer::DataTypeDebugInfoListener { |
| 362 public: | 362 public: |
| 363 // DataTypeDebugInfoListener implementation. | 363 // DataTypeDebugInfoListener implementation. |
| 364 virtual void OnDataTypeAssociationComplete( | 364 virtual void OnDataTypeAssociationComplete( |
| 365 const syncer::DataTypeAssociationStats& association_stats) OVERRIDE { | 365 const syncer::DataTypeAssociationStats& association_stats) OVERRIDE { |
| 366 association_stats_ = association_stats; | 366 association_stats_ = association_stats; |
| 367 } | 367 } |
| 368 virtual void OnConfigureComplete() { | 368 virtual void OnConfigureComplete() OVERRIDE { |
| 369 // Do nothing. | 369 // Do nothing. |
| 370 } | 370 } |
| 371 | 371 |
| 372 protected: | 372 protected: |
| 373 ProfileSyncServiceAutofillTest() | 373 ProfileSyncServiceAutofillTest() |
| 374 : debug_ptr_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) { | 374 : debug_ptr_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) { |
| 375 } | 375 } |
| 376 virtual ~ProfileSyncServiceAutofillTest() { | 376 virtual ~ProfileSyncServiceAutofillTest() { |
| 377 } | 377 } |
| 378 | 378 |
| (...skipping 919 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1298 std::vector<AutofillEntry> sync_entries; | 1298 std::vector<AutofillEntry> sync_entries; |
| 1299 std::vector<AutofillProfile> sync_profiles; | 1299 std::vector<AutofillProfile> sync_profiles; |
| 1300 ASSERT_TRUE(GetAutofillEntriesFromSyncDB(&sync_entries, &sync_profiles)); | 1300 ASSERT_TRUE(GetAutofillEntriesFromSyncDB(&sync_entries, &sync_profiles)); |
| 1301 EXPECT_EQ(3U, sync_entries.size()); | 1301 EXPECT_EQ(3U, sync_entries.size()); |
| 1302 EXPECT_EQ(0U, sync_profiles.size()); | 1302 EXPECT_EQ(0U, sync_profiles.size()); |
| 1303 for (size_t i = 0; i < sync_entries.size(); i++) { | 1303 for (size_t i = 0; i < sync_entries.size(); i++) { |
| 1304 DVLOG(1) << "Entry " << i << ": " << sync_entries[i].key().name() | 1304 DVLOG(1) << "Entry " << i << ": " << sync_entries[i].key().name() |
| 1305 << ", " << sync_entries[i].key().value(); | 1305 << ", " << sync_entries[i].key().value(); |
| 1306 } | 1306 } |
| 1307 } | 1307 } |
| OLD | NEW |