blob: f24f9fdcba9107cd29b7b9693fdfa68a6dd7f8ce [file] [log] [blame]
// Copyright 2017 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_TETHER_FAKE_GMS_CORE_NOTIFICATIONS_STATE_TRACKER_H_
#define CHROMEOS_COMPONENTS_TETHER_FAKE_GMS_CORE_NOTIFICATIONS_STATE_TRACKER_H_
#include <string>
#include <vector>
#include "base/macros.h"
#include "base/observer_list.h"
#include "chromeos/components/tether/gms_core_notifications_state_tracker.h"
namespace chromeos {
namespace tether {
// Test double for GmsCoreNotificationsStateTracker.
class FakeGmsCoreNotificationsStateTracker
: public GmsCoreNotificationsStateTracker {
public:
FakeGmsCoreNotificationsStateTracker();
~FakeGmsCoreNotificationsStateTracker() override;
void set_device_names(const std::vector<std::string>& device_names) {
device_names_ = device_names;
}
void NotifyGmsCoreNotificationStateChanged();
// GmsCoreNotificationsStateTracker:
std::vector<std::string> GetGmsCoreNotificationsDisabledDeviceNames()
override;
private:
std::vector<std::string> device_names_;
DISALLOW_COPY_AND_ASSIGN(FakeGmsCoreNotificationsStateTracker);
};
} // namespace tether
} // namespace chromeos
#endif // CHROMEOS_COMPONENTS_TETHER_FAKE_GMS_CORE_NOTIFICATIONS_STATE_TRACKER_H_