Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Side by Side Diff: chrome/browser/chromeos/webui/login/mock_login_ui_helpers.h

Issue 6579003: Add in chrome://login-container (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Removed some garbage that ended up in the CL and fixed a couple of headers that moved Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_WEBUI_LOGIN_MOCK_LOGIN_UI_HELPERS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_WEBUI_LOGIN_MOCK_LOGIN_UI_HELPERS_H_
6 #define CHROME_BROWSER_CHROMEOS_WEBUI_LOGIN_MOCK_LOGIN_UI_HELPERS_H_ 6 #define CHROME_BROWSER_CHROMEOS_WEBUI_LOGIN_MOCK_LOGIN_UI_HELPERS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "chrome/browser/chromeos/webui/login/login_ui_helpers.h" 11 #include "chrome/browser/chromeos/webui/login/login_ui_helpers.h"
12 #include "testing/gmock/include/gmock/gmock.h" 12 #include "testing/gmock/include/gmock/gmock.h"
13 13
14 namespace chromeos { 14 namespace chromeos {
15 15
16 class MockProfileOperationsInterface 16 class MockProfileOperationsInterface
17 : public chromeos::ProfileOperationsInterface { 17 : public chromeos::ProfileOperationsInterface {
18 public: 18 public:
19 MockProfileOperationsInterface() {} 19 MockProfileOperationsInterface() {}
20 20
21 MOCK_METHOD0(GetDefaultProfile, 21 MOCK_METHOD0(GetDefaultProfile, Profile*());
22 Profile*()); 22 MOCK_METHOD0(GetDefaultProfileByPath, Profile*());
23 MOCK_METHOD0(GetDefaultProfileByPath,
24 Profile*());
25 23
26 private: 24 private:
27 DISALLOW_COPY_AND_ASSIGN(MockProfileOperationsInterface); 25 DISALLOW_COPY_AND_ASSIGN(MockProfileOperationsInterface);
28 }; 26 };
29 27
30 class MockBrowserOperationsInterface 28 class MockBrowserOperationsInterface
31 : public chromeos::BrowserOperationsInterface { 29 : public chromeos::BrowserOperationsInterface {
32 public: 30 public:
33 MockBrowserOperationsInterface() {} 31 MockBrowserOperationsInterface() {}
34 32
35 MOCK_METHOD1(CreateBrowser, 33 MOCK_METHOD1(CreateBrowser, Browser*(Profile* profile));
36 Browser*(Profile* profile)); 34 MOCK_METHOD1(GetLoginBrowser, Browser*(Profile* profile));
37 MOCK_METHOD1(GetLoginBrowser,
38 Browser*(Profile* profile));
39 35
40 private: 36 private:
41 DISALLOW_COPY_AND_ASSIGN(MockBrowserOperationsInterface); 37 DISALLOW_COPY_AND_ASSIGN(MockBrowserOperationsInterface);
42 }; 38 };
43 39
44 class MockHTMLOperationsInterface 40 class MockHTMLOperationsInterface
45 : public chromeos::HTMLOperationsInterface { 41 : public chromeos::HTMLOperationsInterface {
46 public: 42 public:
47 MockHTMLOperationsInterface() {} 43 MockHTMLOperationsInterface() {}
48 44
49 MOCK_METHOD0(GetLoginHTML, 45 MOCK_METHOD0(GetLoginHTML, base::StringPiece());
50 base::StringPiece()); 46 MOCK_METHOD0(GetLoginContainerHTML, base::StringPiece());
51 MOCK_METHOD2(GetFullHTML, 47 MOCK_METHOD2(GetFullHTML,
52 std::string(base::StringPiece login_html, 48 std::string(base::StringPiece login_html,
53 DictionaryValue* localized_strings)); 49 DictionaryValue* localized_strings));
54 MOCK_METHOD1(CreateHTMLBytes, 50 MOCK_METHOD1(CreateHTMLBytes,
55 RefCountedBytes*(std::string full_html)); 51 RefCountedBytes*(std::string full_html));
56 52
57 private: 53 private:
58 DISALLOW_COPY_AND_ASSIGN(MockHTMLOperationsInterface); 54 DISALLOW_COPY_AND_ASSIGN(MockHTMLOperationsInterface);
59 }; 55 };
60 56
61 } // namespace chromeos 57 } // namespace chromeos
62 58
63 #endif // CHROME_BROWSER_CHROMEOS_WEBUI_LOGIN_MOCK_LOGIN_UI_HELPERS_H_ 59 #endif // CHROME_BROWSER_CHROMEOS_WEBUI_LOGIN_MOCK_LOGIN_UI_HELPERS_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/webui/login/login_ui_helpers.cc ('k') | chrome/browser/resources/login_container.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698