1234567891011121314151617181920212223242526272829303132333435363738394041 |
- // Copyright 2018 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 ASH_SERVICES_MULTIDEVICE_SETUP_FAKE_HOST_DEVICE_TIMESTAMP_MANAGER_H_
- #define ASH_SERVICES_MULTIDEVICE_SETUP_FAKE_HOST_DEVICE_TIMESTAMP_MANAGER_H_
- #include "ash/services/multidevice_setup/host_device_timestamp_manager.h"
- #include "base/time/time.h"
- #include "third_party/abseil-cpp/absl/types/optional.h"
- namespace ash {
- namespace multidevice_setup {
- class FakeHostDeviceTimestampManager : public HostDeviceTimestampManager {
- public:
- FakeHostDeviceTimestampManager();
- ~FakeHostDeviceTimestampManager() override;
- void set_was_host_set_from_this_chromebook(
- bool was_host_set_from_this_chromebook);
- void set_completion_timestamp(const base::Time& timestamp);
- void set_verification_timestamp(const base::Time& timestamp);
- private:
- // HostDeviceTimestampManager:
- bool WasHostSetFromThisChromebook() override;
- absl::optional<base::Time> GetLatestSetupFlowCompletionTimestamp() override;
- absl::optional<base::Time> GetLatestVerificationTimestamp() override;
- bool was_host_set_from_this_chromebook_;
- absl::optional<base::Time> completion_time_;
- absl::optional<base::Time> verification_time_;
- };
- } // namespace multidevice_setup
- } // namespace ash
- #endif // ASH_SERVICES_MULTIDEVICE_SETUP_FAKE_HOST_DEVICE_TIMESTAMP_MANAGER_H_
|