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

Unified Diff: chrome/browser/chromeos/login/demo_mode/demo_app_launcher.h

Issue 205713002: Add a basic demo mode browser test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/demo_mode/demo_app_launcher.h
diff --git a/chrome/browser/chromeos/login/demo_mode/demo_app_launcher.h b/chrome/browser/chromeos/login/demo_mode/demo_app_launcher.h
index 8579a5209a2cd170609c74649c3a7525b826c124..2366452662864b181d890974f2dc1c3bba1c1bb9 100644
--- a/chrome/browser/chromeos/login/demo_mode/demo_app_launcher.h
+++ b/chrome/browser/chromeos/login/demo_mode/demo_app_launcher.h
@@ -5,11 +5,14 @@
#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_DEMO_MODE_DEMO_APP_LAUNCHER_H_
#define CHROME_BROWSER_CHROMEOS_LOGIN_DEMO_MODE_DEMO_APP_LAUNCHER_H_
+#include <string>
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "base/files/file_path.h"
bartfab (slow) 2014/03/20 13:22:29 Nit: A forward-declaration of FilePath would be su
rkc 2014/03/20 21:45:01 Done.
#include "base/memory/scoped_ptr.h"
#include "chrome/browser/chromeos/app_mode/kiosk_profile_loader.h"
-class Profile;
-
namespace chromeos {
// Class responsible for launching the demo app under a kiosk session.
@@ -21,16 +24,21 @@ class DemoAppLauncher : public KioskProfileLoader::Delegate {
void StartDemoAppLaunch();
static bool IsDemoAppSession(const std::string& user_id);
+ static void SetDemoAppPathForTesting(const base::FilePath& path);
+
static const char kDemoUserName[];
private:
+ friend class DemoAppLauncherTest;
+
// KioskProfileLoader::Delegate overrides:
virtual void OnProfileLoaded(Profile* profile) OVERRIDE;
virtual void OnProfileLoadFailed(KioskAppLaunchError::Error error) OVERRIDE;
- Profile* profile_;
scoped_ptr<KioskProfileLoader> kiosk_profile_loader_;
+ static base::FilePath* demo_app_path_;
+
DISALLOW_COPY_AND_ASSIGN(DemoAppLauncher);
};

Powered by Google App Engine
This is Rietveld 408576698