Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / chromeos / login / test_login_utils.h
blob9f2730072737b2ede050964922e1c6713b68cc70
1 // Copyright (c) 2012 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.
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_TEST_LOGIN_UTILS_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_TEST_LOGIN_UTILS_H_
8 #include <string>
10 #include "base/memory/ref_counted.h"
11 #include "chrome/browser/chromeos/login/authenticator.h"
12 #include "chrome/browser/chromeos/login/login_utils.h"
13 #include "google_apis/gaia/google_service_auth_error.h"
14 #include "testing/gtest/include/gtest/gtest.h"
16 class Profile;
18 namespace chromeos {
20 class LoginStatusConsumer;
22 class TestLoginUtils : public LoginUtils {
23 public:
24 TestLoginUtils(const std::string& expected_username,
25 const std::string& expected_password);
26 virtual ~TestLoginUtils();
28 virtual void DoBrowserLaunch(Profile* profile,
29 LoginDisplayHost* login_host) OVERRIDE {}
30 virtual void PrepareProfile(const UserContext& credentials,
31 const std::string& display_email,
32 bool has_cookies,
33 bool has_active_session,
34 Delegate* delegate) OVERRIDE;
36 virtual void DelegateDeleted(Delegate* delegate) OVERRIDE;
38 virtual void CompleteOffTheRecordLogin(const GURL& start_url) OVERRIDE {}
40 virtual void SetFirstLoginPrefs(PrefService* prefs) OVERRIDE {}
42 virtual scoped_refptr<Authenticator> CreateAuthenticator(
43 LoginStatusConsumer* consumer) OVERRIDE;
45 virtual void RestoreAuthenticationSession(Profile* profile) OVERRIDE {}
47 virtual void InitRlzDelayed(Profile* user_profile) OVERRIDE;
49 private:
50 std::string expected_username_;
51 std::string expected_password_;
52 std::string auth_token_;
54 DISALLOW_COPY_AND_ASSIGN(TestLoginUtils);
57 } // namespace chromeos
59 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_TEST_LOGIN_UTILS_H_