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

Unified Diff: chrome/browser/chromeos/login/mock_authenticator.h

Issue 11506006: [cros] RLZ tracking can be turned off via a flag file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-apply ps#16, it got lost Created 8 years 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/mock_authenticator.h
diff --git a/chrome/browser/chromeos/login/mock_authenticator.h b/chrome/browser/chromeos/login/mock_authenticator.h
index d08b9065b81d9e6a74c8edd07fdcf293097d5ca1..9215c32c497689f2015fc546a9c556f5e0415710 100644
--- a/chrome/browser/chromeos/login/mock_authenticator.h
+++ b/chrome/browser/chromeos/login/mock_authenticator.h
@@ -7,12 +7,7 @@
#include <string>
-#include "base/compiler_specific.h"
-#include "base/memory/ref_counted.h"
#include "chrome/browser/chromeos/login/authenticator.h"
-#include "chrome/browser/chromeos/login/login_utils.h"
-#include "content/public/browser/browser_thread.h"
-#include "google_apis/gaia/google_service_auth_error.h"
#include "testing/gtest/include/gtest/gtest.h"
class Profile;
@@ -75,63 +70,6 @@ class MockAuthenticator : public Authenticator {
DISALLOW_COPY_AND_ASSIGN(MockAuthenticator);
};
-class TestLoginUtils : public LoginUtils {
- public:
- TestLoginUtils(const std::string& expected_username,
- const std::string& expected_password);
- virtual ~TestLoginUtils();
-
- virtual void DoBrowserLaunch(Profile* profile,
- LoginDisplayHost* login_host) OVERRIDE {}
- virtual void PrepareProfile(const std::string& username,
- const std::string& display_email,
- const std::string& password,
- bool pending_requests,
- bool using_oauth,
- bool has_cookies,
- Delegate* delegate) OVERRIDE;
-
- virtual void DelegateDeleted(Delegate* delegate) OVERRIDE;
-
- virtual void CompleteOffTheRecordLogin(const GURL& start_url) OVERRIDE {}
-
- virtual void SetFirstLoginPrefs(PrefService* prefs) OVERRIDE {}
-
- virtual scoped_refptr<Authenticator> CreateAuthenticator(
- LoginStatusConsumer* consumer) OVERRIDE;
-
- virtual void PrewarmAuthentication() OVERRIDE {}
-
- virtual void RestoreAuthenticationSession(Profile* profile) OVERRIDE {}
-
- virtual void StartTokenServices(Profile* profile) OVERRIDE {}
-
- virtual void StartSignedInServices(
- Profile* profile,
- const GaiaAuthConsumer::ClientLoginResult& credentials) OVERRIDE {}
-
- virtual std::string GetOffTheRecordCommandLine(
- const GURL& start_url,
- const CommandLine& base_command_line,
- CommandLine* command_line) OVERRIDE;
-
- virtual void TransferDefaultCookiesAndServerBoundCerts(
- Profile* default_profile,
- Profile* new_profile) OVERRIDE;
-
- virtual void TransferDefaultAuthCache(Profile* default_profile,
- Profile* new_profile) OVERRIDE;
-
- virtual void StopBackgroundFetchers() OVERRIDE;
-
- private:
- std::string expected_username_;
- std::string expected_password_;
- std::string auth_token_;
-
- DISALLOW_COPY_AND_ASSIGN(TestLoginUtils);
-};
-
} // namespace chromeos
#endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_

Powered by Google App Engine
This is Rietveld 408576698