1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_SCREEN_OBSERVER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_SCREEN_OBSERVER_H_ 7 #pragma once 8 9 #include <string> 10 11 #include "chrome/browser/chromeos/login/screen_observer.h" 12 #include "testing/gmock/include/gmock/gmock.h" 13 14 namespace chromeos { 15 16 // Interface that handles notifications received from any of login wizard 17 // screens. 18 class MockScreenObserver : public ScreenObserver { 19 public: 20 MockScreenObserver() {} 21 virtual ~MockScreenObserver() {} 22 MOCK_METHOD1(OnExit, void(ExitCodes)); 23 MOCK_METHOD2(OnSetUserNamePassword, 24 void(const std::string&, const std::string&)); 25 MOCK_METHOD1(set_usage_statistics_reporting, void(bool)); 26 MOCK_CONST_METHOD0(usage_statistics_reporting, bool()); 27 }; 28 29 } // namespace chromeos 30 31 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_SCREEN_OBSERVER_H_ 32