forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fake_onboarding_ui_tracker.h
39 lines (28 loc) · 1.08 KB
/
fake_onboarding_ui_tracker.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROMEOS_COMPONENTS_PHONEHUB_FAKE_ONBOARDING_UI_TRACKER_H_
#define CHROMEOS_COMPONENTS_PHONEHUB_FAKE_ONBOARDING_UI_TRACKER_H_
#include "chromeos/components/phonehub/onboarding_ui_tracker.h"
namespace chromeos {
namespace phonehub {
class FakeOnboardingUiTracker : public OnboardingUiTracker {
public:
FakeOnboardingUiTracker();
~FakeOnboardingUiTracker() override;
void SetShouldShowOnboardingUi(bool should_show_onboarding_ui);
// OnboardingUiTracker:
bool ShouldShowOnboardingUi() const override;
size_t handle_get_started_call_count() {
return handle_get_started_call_count_;
}
private:
// OnboardingUiTracker:
void DismissSetupUi() override;
void HandleGetStarted() override;
bool should_show_onboarding_ui_ = false;
size_t handle_get_started_call_count_ = 0;
};
} // namespace phonehub
} // namespace chromeos
#endif // CHROMEOS_COMPONENTS_PHONEHUB_FAKE_ONBOARDING_UI_TRACKER_H_