OLD | NEW |
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 #ifndef COMPONENTS_NTP_SNIPPETS_REMOTE_NTP_SNIPPETS_TEST_UTILS_H_ | 5 #ifndef COMPONENTS_NTP_SNIPPETS_REMOTE_NTP_SNIPPETS_TEST_UTILS_H_ |
6 #define COMPONENTS_NTP_SNIPPETS_REMOTE_NTP_SNIPPETS_TEST_UTILS_H_ | 6 #define COMPONENTS_NTP_SNIPPETS_REMOTE_NTP_SNIPPETS_TEST_UTILS_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "components/sync/driver/fake_sync_service.h" | 10 #include "components/sync/driver/fake_sync_service.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
12 | 12 |
13 class AccountTrackerService; | 13 class AccountTrackerService; |
14 class FakeSigninManagerBase; | 14 class FakeSigninManagerBase; |
15 class MockSyncService; | |
16 class TestingPrefServiceSimple; | 15 class TestingPrefServiceSimple; |
17 class TestSigninClient; | 16 class TestSigninClient; |
18 | 17 |
19 namespace ntp_snippets { | 18 namespace ntp_snippets { |
20 namespace test { | 19 namespace test { |
21 | 20 |
22 class FakeSyncService : public syncer::FakeSyncService { | 21 class FakeSyncService : public syncer::FakeSyncService { |
23 public: | 22 public: |
24 FakeSyncService(); | 23 FakeSyncService(); |
25 ~FakeSyncService() override; | 24 ~FakeSyncService() override; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 std::unique_ptr<FakeSyncService> fake_sync_service_; | 56 std::unique_ptr<FakeSyncService> fake_sync_service_; |
58 std::unique_ptr<TestingPrefServiceSimple> pref_service_; | 57 std::unique_ptr<TestingPrefServiceSimple> pref_service_; |
59 std::unique_ptr<TestSigninClient> signin_client_; | 58 std::unique_ptr<TestSigninClient> signin_client_; |
60 std::unique_ptr<AccountTrackerService> account_tracker_; | 59 std::unique_ptr<AccountTrackerService> account_tracker_; |
61 }; | 60 }; |
62 | 61 |
63 } // namespace test | 62 } // namespace test |
64 } // namespace ntp_snippets | 63 } // namespace ntp_snippets |
65 | 64 |
66 #endif // COMPONENTS_NTP_SNIPPETS_REMOTE_NTP_SNIPPETS_TEST_UTILS_H_ | 65 #endif // COMPONENTS_NTP_SNIPPETS_REMOTE_NTP_SNIPPETS_TEST_UTILS_H_ |
OLD | NEW |