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

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

Issue 7980012: [ChromeOS] Reland - Make WebUI login use only needed resources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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
(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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/mock_login_ui_handler.h ('k') | chrome/browser/ui/webui/chromeos/login/oobe_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698