| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2011 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_UI_WEBUI_CHROMEOS_LOGIN_MOCK_LOGIN_UI_HELPERS_H_ | |
| 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_MOCK_LOGIN_UI_HELPERS_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include <string> | |
| 10 | |
| 11 #include "chrome/browser/ui/webui/chromeos/login/login_ui_helpers.h" | |
| 12 #include "testing/gmock/include/gmock/gmock.h" | |
| 13 | |
| 14 namespace chromeos { | |
| 15 | |
| 16 class MockProfileOperationsInterface | |
| 17 : public chromeos::ProfileOperationsInterface { | |
| 18 public: | |
| 19 MockProfileOperationsInterface() {} | |
| 20 | |
| 21 MOCK_METHOD0(GetDefaultProfile, Profile*()); | |
| 22 MOCK_METHOD0(GetDefaultProfileByPath, Profile*()); | |
| 23 | |
| 24 private: | |
| 25 DISALLOW_COPY_AND_ASSIGN(MockProfileOperationsInterface); | |
| 26 }; | |
| 27 | |
| 28 class MockBrowserOperationsInterface | |
| 29 : public chromeos::BrowserOperationsInterface { | |
| 30 public: | |
| 31 MockBrowserOperationsInterface() {} | |
| 32 | |
| 33 MOCK_METHOD1(CreateBrowser, Browser*(Profile* profile)); | |
| 34 MOCK_METHOD1(GetLoginBrowser, Browser*(Profile* profile)); | |
| 35 | |
| 36 private: | |
| 37 DISALLOW_COPY_AND_ASSIGN(MockBrowserOperationsInterface); | |
| 38 }; | |
| 39 | |
| 40 class MockHTMLOperationsInterface | |
| 41 : public chromeos::HTMLOperationsInterface { | |
| 42 public: | |
| 43 MockHTMLOperationsInterface() {} | |
| 44 | |
| 45 MOCK_METHOD0(GetLoginHTML, base::StringPiece()); | |
| 46 MOCK_METHOD0(GetLoginContainerHTML, base::StringPiece()); | |
| 47 MOCK_METHOD2(GetFullHTML, | |
| 48 std::string(base::StringPiece login_html, | |
| 49 DictionaryValue* localized_strings)); | |
| 50 | |
| 51 private: | |
| 52 DISALLOW_COPY_AND_ASSIGN(MockHTMLOperationsInterface); | |
| 53 }; | |
| 54 | |
| 55 } // namespace chromeos | |
| 56 | |
| 57 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_MOCK_LOGIN_UI_HELPERS_H_ | |
| OLD | NEW |