Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(333)

Side by Side Diff: components/wifi_sync/wifi_credential_syncable_service_unittest.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
19 #include "components/sync/api/fake_sync_change_processor.h"
20 #include "components/sync/api/sync_change.h"
21 #include "components/sync/api/sync_data.h"
22 #include "components/sync/api/sync_error.h"
23 #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"
18 #include "components/wifi_sync/wifi_config_delegate.h" 26 #include "components/wifi_sync/wifi_config_delegate.h"
19 #include "components/wifi_sync/wifi_credential.h" 27 #include "components/wifi_sync/wifi_credential.h"
20 #include "components/wifi_sync/wifi_security_class.h" 28 #include "components/wifi_sync/wifi_security_class.h"
21 #include "sync/api/attachments/attachment_id.h"
22 #include "sync/api/fake_sync_change_processor.h"
23 #include "sync/api/sync_change.h"
24 #include "sync/api/sync_data.h"
25 #include "sync/api/sync_error.h"
26 #include "sync/api/sync_error_factory_mock.h"
27 #include "sync/internal_api/public/attachments/attachment_service_proxy_for_test .h"
28 #include "sync/protocol/sync.pb.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;
35 35
36 namespace { 36 namespace {
37 37
38 const char kSsid[] = "fake-ssid"; 38 const char kSsid[] = "fake-ssid";
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 MakeCredential(kSsidNonUtf8, SECURITY_CLASS_NONE, ""))); 335 MakeCredential(kSsidNonUtf8, SECURITY_CLASS_NONE, "")));
336 EXPECT_EQ(1, change_processor_changes_size()); 336 EXPECT_EQ(1, change_processor_changes_size());
337 EXPECT_FALSE( 337 EXPECT_FALSE(
338 AddToSyncedNetworks( 338 AddToSyncedNetworks(
339 "fake-item-id", 339 "fake-item-id",
340 MakeCredential(kSsidNonUtf8, SECURITY_CLASS_NONE, ""))); 340 MakeCredential(kSsidNonUtf8, SECURITY_CLASS_NONE, "")));
341 EXPECT_EQ(1, change_processor_changes_size()); 341 EXPECT_EQ(1, change_processor_changes_size());
342 } 342 }
343 343
344 } // namespace wifi_sync 344 } // namespace wifi_sync
OLDNEW
« no previous file with comments | « components/wifi_sync/wifi_credential_syncable_service.cc ('k') | components/wifi_sync/wifi_security_class.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698