blob: 502d10a845ade512bac5ea8df99c61add19e4598 [file] [log] [blame]
// 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 CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MOCK_NETWORK_SCREEN_H_
#define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MOCK_NETWORK_SCREEN_H_
#include "base/macros.h"
#include "chrome/browser/chromeos/login/screens/network_screen.h"
#include "chrome/browser/chromeos/login/screens/network_screen_view.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace chromeos {
class MockNetworkScreen : public NetworkScreen {
public:
MockNetworkScreen(BaseScreenDelegate* base_screen_delegate,
NetworkScreenView* view);
~MockNetworkScreen() override;
MOCK_METHOD0(Show, void());
MOCK_METHOD0(Hide, void());
private:
DISALLOW_COPY_AND_ASSIGN(MockNetworkScreen);
};
class MockNetworkScreenView : public NetworkScreenView {
public:
MockNetworkScreenView();
~MockNetworkScreenView() override;
void Bind(NetworkScreen* screen) override;
void Unbind() override;
MOCK_METHOD1(MockBind, void(NetworkScreen* screen));
MOCK_METHOD0(MockUnbind, void());
MOCK_METHOD0(Show, void());
MOCK_METHOD0(Hide, void());
MOCK_METHOD1(ShowError, void(const base::string16& message));
MOCK_METHOD0(ClearErrors, void());
MOCK_METHOD2(ShowConnectingStatus,
void(bool connecting, const base::string16& network_id));
private:
NetworkScreen* screen_ = nullptr;
DISALLOW_COPY_AND_ASSIGN(MockNetworkScreenView);
};
} // namespace chromeos
#endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MOCK_NETWORK_SCREEN_H_