blob: 16e9fd00c0a1d3b6a6223183a52de44d170a29e8 [file] [log] [blame]
// Copyright 2015 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_NETWORK_PORTAL_DETECTOR_NETWORK_PORTAL_DETECTOR_STUB_H_
#define CHROMEOS_NETWORK_PORTAL_DETECTOR_NETWORK_PORTAL_DETECTOR_STUB_H_
#include "base/macros.h"
#include "chromeos/network/portal_detector/network_portal_detector.h"
namespace chromeos {
class CHROMEOS_EXPORT NetworkPortalDetectorStub : public NetworkPortalDetector {
public:
NetworkPortalDetectorStub();
~NetworkPortalDetectorStub() override;
private:
// NetworkPortalDetector:
void AddObserver(Observer* observer) override;
void AddAndFireObserver(Observer* observer) override;
void RemoveObserver(Observer* observer) override;
CaptivePortalState GetCaptivePortalState(
const std::string& service_path) override;
bool IsEnabled() override;
void Enable(bool start_detection) override;
bool StartDetectionIfIdle() override;
void SetStrategy(PortalDetectorStrategy::StrategyId id) override;
void OnLockScreenRequest() override;
DISALLOW_COPY_AND_ASSIGN(NetworkPortalDetectorStub);
};
} // namespace chromeos
#endif // CHROMEOS_NETWORK_PORTAL_DETECTOR_NETWORK_PORTAL_DETECTOR_STUB_H_