| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/wifi_sync/wifi_credential_syncable_service.h" | 5 #include "components/wifi_sync/wifi_credential_syncable_service.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <utility> | 11 #include <utility> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/memory/ptr_util.h" | 15 #include "base/memory/ptr_util.h" |
| 16 #include "base/time/time.h" | 16 #include "base/time/time.h" |
| 17 #include "base/tracked_objects.h" | 17 #include "base/tracked_objects.h" |
| 18 #include "components/sync/api/attachments/attachment_id.h" | 18 #include "components/sync/api/attachments/attachment_id.h" |
| 19 #include "components/sync/api/attachments/attachment_service_proxy_for_test.h" |
| 19 #include "components/sync/api/fake_sync_change_processor.h" | 20 #include "components/sync/api/fake_sync_change_processor.h" |
| 20 #include "components/sync/api/sync_change.h" | 21 #include "components/sync/api/sync_change.h" |
| 21 #include "components/sync/api/sync_data.h" | 22 #include "components/sync/api/sync_data.h" |
| 22 #include "components/sync/api/sync_error.h" | 23 #include "components/sync/api/sync_error.h" |
| 23 #include "components/sync/api/sync_error_factory_mock.h" | 24 #include "components/sync/api/sync_error_factory_mock.h" |
| 24 #include "components/sync/core/attachments/attachment_service_proxy_for_test.h" | |
| 25 #include "components/sync/protocol/sync.pb.h" | 25 #include "components/sync/protocol/sync.pb.h" |
| 26 #include "components/wifi_sync/wifi_config_delegate.h" | 26 #include "components/wifi_sync/wifi_config_delegate.h" |
| 27 #include "components/wifi_sync/wifi_credential.h" | 27 #include "components/wifi_sync/wifi_credential.h" |
| 28 #include "components/wifi_sync/wifi_security_class.h" | 28 #include "components/wifi_sync/wifi_security_class.h" |
| 29 #include "testing/gtest/include/gtest/gtest.h" | 29 #include "testing/gtest/include/gtest/gtest.h" |
| 30 | 30 |
| 31 namespace wifi_sync { | 31 namespace wifi_sync { |
| 32 | 32 |
| 33 using syncer::FakeSyncChangeProcessor; | 33 using syncer::FakeSyncChangeProcessor; |
| 34 using syncer::SyncErrorFactoryMock; | 34 using syncer::SyncErrorFactoryMock; |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 MakeCredential(kSsidNonUtf8, SECURITY_CLASS_NONE, ""))); | 334 MakeCredential(kSsidNonUtf8, SECURITY_CLASS_NONE, ""))); |
| 335 EXPECT_EQ(1, change_processor_changes_size()); | 335 EXPECT_EQ(1, change_processor_changes_size()); |
| 336 EXPECT_FALSE( | 336 EXPECT_FALSE( |
| 337 AddToSyncedNetworks( | 337 AddToSyncedNetworks( |
| 338 "fake-item-id", | 338 "fake-item-id", |
| 339 MakeCredential(kSsidNonUtf8, SECURITY_CLASS_NONE, ""))); | 339 MakeCredential(kSsidNonUtf8, SECURITY_CLASS_NONE, ""))); |
| 340 EXPECT_EQ(1, change_processor_changes_size()); | 340 EXPECT_EQ(1, change_processor_changes_size()); |
| 341 } | 341 } |
| 342 | 342 |
| 343 } // namespace wifi_sync | 343 } // namespace wifi_sync |
| OLD | NEW |