OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/sync/sync_error_notifier_ash.h" | 5 #include "chrome/browser/sync/sync_error_notifier_ash.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 | 47 |
48 namespace { | 48 namespace { |
49 | 49 |
50 const char kTestAccountId[] = "testuser@test.com"; | 50 const char kTestAccountId[] = "testuser@test.com"; |
51 | 51 |
52 // Notification ID corresponding to kProfileSyncNotificationId + kTestAccountId. | 52 // Notification ID corresponding to kProfileSyncNotificationId + kTestAccountId. |
53 const char kNotificationId[] = "chrome://settings/sync/testuser@test.com"; | 53 const char kNotificationId[] = "chrome://settings/sync/testuser@test.com"; |
54 | 54 |
55 class FakeLoginUIService: public LoginUIService { | 55 class FakeLoginUIService: public LoginUIService { |
56 public: | 56 public: |
57 FakeLoginUIService() : LoginUIService(NULL) {} | 57 FakeLoginUIService() : LoginUIService(nullptr) {} |
58 ~FakeLoginUIService() override {} | 58 ~FakeLoginUIService() override {} |
59 }; | 59 }; |
60 | 60 |
61 class FakeLoginUI : public LoginUIService::LoginUI { | 61 class FakeLoginUI : public LoginUIService::LoginUI { |
62 public: | 62 public: |
63 FakeLoginUI() : focus_ui_call_count_(0) {} | 63 FakeLoginUI() : focus_ui_call_count_(0) {} |
64 | 64 |
65 ~FakeLoginUI() override {} | 65 ~FakeLoginUI() override {} |
66 | 66 |
67 int focus_ui_call_count() const { return focus_ui_call_count_; } | 67 int focus_ui_call_count() const { return focus_ui_call_count_; } |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 SCOPED_TRACE("Not expecting notification since sync setup is incomplete"); | 228 SCOPED_TRACE("Not expecting notification since sync setup is incomplete"); |
229 VerifySyncErrorNotifierResult( | 229 VerifySyncErrorNotifierResult( |
230 GoogleServiceAuthError::INVALID_GAIA_CREDENTIALS, | 230 GoogleServiceAuthError::INVALID_GAIA_CREDENTIALS, |
231 false /* not signed in */, | 231 false /* not signed in */, |
232 false /* no error */); | 232 false /* no error */); |
233 } | 233 } |
234 } | 234 } |
235 | 235 |
236 } // namespace test | 236 } // namespace test |
237 } // namespace ash | 237 } // namespace ash |
OLD | NEW |