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

Unified Diff: chrome/test/in_process_browser_test.h

Issue 27122: Another attempt at landing the new browser focus interactive ui tests (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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
« no previous file with comments | « chrome/browser/views/frame/browser_view.h ('k') | chrome/test/in_process_browser_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/in_process_browser_test.h
===================================================================
--- chrome/test/in_process_browser_test.h (revision 10330)
+++ chrome/test/in_process_browser_test.h (working copy)
@@ -5,7 +5,6 @@
#ifndef CHROME_TEST_IN_PROCESS_BROWSER_TEST_H_
#define CHROME_TEST_IN_PROCESS_BROWSER_TEST_H_
-#include "chrome/app/scoped_ole_initializer.h"
#include "chrome/common/notification_registrar.h"
#include "chrome/common/notification_observer.h"
#include "net/url_request/url_request_unittest.h"
@@ -74,6 +73,11 @@
// This is invoked from Setup.
virtual Browser* CreateBrowser(Profile* profile);
+ // Sets some test states (see below for comments). Call this in your test
+ // constructor.
+ void set_show_window(bool show) { show_window_ = show; }
+ void EnableDOMAutomation() { dom_automation_enabled_ = true; }
+
private:
// Invokes CreateBrowser to create a browser, then RunTestOnMainThread, and
// destroys the browser.
@@ -88,8 +92,14 @@
// HTTPServer, created when StartHTTPServer is invoked.
scoped_refptr<HTTPTestServer> http_server_;
- ScopedOleInitializer ole_initializer_;
+ // Whether this test requires the browser windows to be shown (interactive
+ // tests for example need the windows shown).
+ bool show_window_;
+ // Whether the JavaScript can access the DOMAutomationController (a JS object
+ // that can send messages back to the browser).
+ bool dom_automation_enabled_;
+
DISALLOW_COPY_AND_ASSIGN(InProcessBrowserTest);
};
« no previous file with comments | « chrome/browser/views/frame/browser_view.h ('k') | chrome/test/in_process_browser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698