summaryrefslogtreecommitdiffstats
path: root/ash/test
diff options
context:
space:
mode:
authorrkc@chromium.org <rkc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-02 21:54:04 +0000
committerrkc@chromium.org <rkc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-02 21:54:04 +0000
commit669a2ef721ff2ba7fba0d5bf1f8357af5f722ff6 (patch)
treefa52cca867d3d600b074524b67dc0286d8041359 /ash/test
parent75d86c040b469787676a7bb1f3650a4903bc13fb (diff)
downloadchromium_src-669a2ef721ff2ba7fba0d5bf1f8357af5f722ff6.zip
chromium_src-669a2ef721ff2ba7fba0d5bf1f8357af5f722ff6.tar.gz
chromium_src-669a2ef721ff2ba7fba0d5bf1f8357af5f722ff6.tar.bz2
Re-implement the screensaver to use WebView instead of ExtensionDialogHost.
Use WebView to render the screensaver extension instead of ExtensionDialogHost. Using the RenderViewGone override to detect termination of the renderer process to restart it. Added browser tests. R=ben@chromium.org,sky@chromium.org BUG=chromium-os:28211 TEST=Tested that the screensaver comes up; tested the reload via crashing the extension renderer with SIG_ABRT; also ran browser tests. Review URL: https://chromiumcodereview.appspot.com/10191010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135000 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/test')
-rw-r--r--ash/test/DEPS3
-rw-r--r--ash/test/test_shell_delegate.cc5
-rw-r--r--ash/test/test_shell_delegate.h1
3 files changed, 9 insertions, 0 deletions
diff --git a/ash/test/DEPS b/ash/test/DEPS
new file mode 100644
index 0000000..659b105
--- /dev/null
+++ b/ash/test/DEPS
@@ -0,0 +1,3 @@
+include_rules = [
+ "+content/test",
+]
diff --git a/ash/test/test_shell_delegate.cc b/ash/test/test_shell_delegate.cc
index f3dbea5..ad6f34a 100644
--- a/ash/test/test_shell_delegate.cc
+++ b/ash/test/test_shell_delegate.cc
@@ -10,6 +10,7 @@
#include "ash/shell.h"
#include "ash/shell_window_ids.h"
#include "ash/test/test_launcher_delegate.h"
+#include "content/test/test_browser_context.h"
#include "grit/ui_resources.h"
#include "ui/aura/window.h"
@@ -59,6 +60,10 @@ void TestShellDelegate::OpenCrosh() {
void TestShellDelegate::OpenMobileSetup() {
}
+content::BrowserContext* TestShellDelegate::GetCurrentBrowserContext() {
+ return new TestBrowserContext();
+}
+
AppListViewDelegate* TestShellDelegate::CreateAppListViewDelegate() {
return NULL;
}
diff --git a/ash/test/test_shell_delegate.h b/ash/test/test_shell_delegate.h
index 1788a4a..ce04845 100644
--- a/ash/test/test_shell_delegate.h
+++ b/ash/test/test_shell_delegate.h
@@ -29,6 +29,7 @@ class TestShellDelegate : public ShellDelegate {
virtual void OpenFileManager() OVERRIDE;
virtual void OpenCrosh() OVERRIDE;
virtual void OpenMobileSetup() OVERRIDE;
+ virtual content::BrowserContext* GetCurrentBrowserContext() OVERRIDE;
virtual AppListViewDelegate* CreateAppListViewDelegate() OVERRIDE;
virtual void StartPartialScreenshot(
ScreenshotDelegate* screenshot_delegate) OVERRIDE;