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

Side by Side Diff: chrome/browser/sync/test/integration/single_client_arc_package_sync_test.cc

Issue 2365763002: [Sync] Removed passphrase helper methods, removed ((n)) pattern, and fixed lint violations. (Closed)
Patch Set: Removed useless pass-through accessors. Created 4 years, 3 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "chrome/browser/profiles/profile.h" 5 #include "chrome/browser/profiles/profile.h"
6 #include "chrome/browser/sync/test/integration/sync_arc_package_helper.h" 6 #include "chrome/browser/sync/test/integration/sync_arc_package_helper.h"
7 #include "chrome/browser/sync/test/integration/sync_integration_test_util.h" 7 #include "chrome/browser/sync/test/integration/sync_integration_test_util.h"
8 #include "chrome/browser/sync/test/integration/sync_test.h" 8 #include "chrome/browser/sync/test/integration/sync_test.h"
9 #include "chrome/browser/ui/app_list/arc/arc_package_syncable_service.h" 9 #include "chrome/browser/ui/app_list/arc/arc_package_syncable_service.h"
10 10
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 private: 49 private:
50 SyncArcPackageHelper* sync_helper_; 50 SyncArcPackageHelper* sync_helper_;
51 51
52 DISALLOW_COPY_AND_ASSIGN(SingleClientArcPackageSyncTest); 52 DISALLOW_COPY_AND_ASSIGN(SingleClientArcPackageSyncTest);
53 }; 53 };
54 54
55 IN_PROC_BROWSER_TEST_F(SingleClientArcPackageSyncTest, ArcPackageEmpty) { 55 IN_PROC_BROWSER_TEST_F(SingleClientArcPackageSyncTest, ArcPackageEmpty) {
56 ASSERT_TRUE(SetupSync()); 56 ASSERT_TRUE(SetupSync());
57 57
58 ASSERT_TRUE(AllProfilesHaveSameArcPackageDetails()); 58 ASSERT_TRUE(AllProfilesHaveSameArcPackageDetails());
59
60 } 59 }
61 60
62 IN_PROC_BROWSER_TEST_F(SingleClientArcPackageSyncTest, 61 IN_PROC_BROWSER_TEST_F(SingleClientArcPackageSyncTest,
63 ArcPackageInstallSomePackages) { 62 ArcPackageInstallSomePackages) {
64 ASSERT_TRUE(SetupSync()); 63 ASSERT_TRUE(SetupSync());
65 64
66 constexpr size_t kNumPackages = 5; 65 constexpr size_t kNumPackages = 5;
67 for (size_t i = 0; i < kNumPackages; ++i) { 66 for (size_t i = 0; i < kNumPackages; ++i) {
68 sync_helper()->InstallPackageWithIndex(GetProfile(0), i); 67 sync_helper()->InstallPackageWithIndex(GetProfile(0), i);
69 sync_helper()->InstallPackageWithIndex(verifier(), i); 68 sync_helper()->InstallPackageWithIndex(verifier(), i);
70 } 69 }
71 70
72 ASSERT_TRUE(AwaitCommitActivityCompletion(GetSyncService((0)))); 71 ASSERT_TRUE(AwaitCommitActivityCompletion(GetSyncService(0)));
73 ASSERT_TRUE(AllProfilesHaveSameArcPackageDetails()); 72 ASSERT_TRUE(AllProfilesHaveSameArcPackageDetails());
74 } 73 }
75 74
76 } // namespace arc 75 } // namespace arc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698