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

Unified Diff: chrome/test/wtflib/wtf_testsuite.h

Issue 2043006: WTF NPAPI extension. Early draft. Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 10 years, 7 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/test/wtflib/wtf.idl ('k') | chrome/test/wtflib/wtf_testsuite.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/wtflib/wtf_testsuite.h
===================================================================
--- chrome/test/wtflib/wtf_testsuite.h (revision 0)
+++ chrome/test/wtflib/wtf_testsuite.h (revision 0)
@@ -0,0 +1,44 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_TEST_WTFLIB_WTF_TESTSUITE_H_
+#define CHROME_TEST_WTFLIB_WTF_TESTSUITE_H_
+
+#include <string>
+
+#include "base/scoped_nsautorelease_pool.h"
+#include "chrome/test/ui/ui_test.h"
+
+
+class WTFTestSuite : public UITestBase {
+ public:
+ // Only public methods are accessible from swig.
+
+ // Constructor. Lookup pyauto.py for doc on these args.
+ WTFTestSuite(bool clear_profile, std::wstring homepage);
+
+ ~WTFTestSuite();
+
+ // Initialize the setup. Should be called before launching the browser.
+ // |browser_dir| is the path to dir containing chromium binaries.
+ void Initialize(const FilePath& browser_dir);
+
+ // SetUp,TearDown is redeclared as public to make it accessible from swig.
+ virtual void SetUp();
+ virtual void TearDown();
+
+ // Navigate to the given URL in the active tab. Blocks until page loaded.
+ void NavigateToURL(const std::string url_string);
+
+ // AutomationProxy methods
+ // Open a new browser window. Returns false on failure.
+ bool OpenNewBrowserWindow(bool show);
+
+ private:
+ base::ScopedNSAutoreleasePool pool_;
+
+ DISALLOW_COPY_AND_ASSIGN(WTFTestSuite);
+};
+
+#endif // CHROME_TEST_WTFLIB_WTF_TESTSUITE_H_
Property changes on: chrome/test/wtflib/wtf_testsuite.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/test/wtflib/wtf.idl ('k') | chrome/test/wtflib/wtf_testsuite.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698