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

Unified Diff: chrome/test/wtflib/wtf.cc

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.h ('k') | chrome/test/wtflib/wtf.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/wtflib/wtf.cc
===================================================================
--- chrome/test/wtflib/wtf.cc (revision 0)
+++ chrome/test/wtflib/wtf.cc (revision 0)
@@ -0,0 +1,42 @@
+// 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.
+
+#include "chrome/test/wtflib/wtf.h"
+
+// TODO(jcarollo): Don't do this.
+#if defined(UNIT_TEST)
+#include "base/at_exit.h"
+#else
+#define UNIT_TEST
+#include "base/at_exit.h"
+#undef UNIT_TEST
+#endif
+
+#include "base/file_path.h"
+#include "chrome/test/wtflib/wtf_testsuite.h"
+
+
+WTF::WTF()
+ : at_exit_manager_(new base::ShadowingAtExitManager),
+ wtf_testsuite_(new WTFTestSuite(false, std::wstring())) {
+}
+
+WTF::~WTF() {
+ wtf_testsuite_->TearDown();
+ delete wtf_testsuite_;
+ delete at_exit_manager_;
+}
+
+void WTF::Initialize(const std::string& browser_dir) {
+ wtf_testsuite_->Initialize(FilePath(browser_dir));
+ wtf_testsuite_->SetUp();
+}
+
+void WTF::NavigateToURL(const std::string url_string) {
+ wtf_testsuite_->NavigateToURL(url_string.c_str());
+}
+
+bool WTF::OpenNewBrowserWindow(bool show) {
+ return wtf_testsuite_->OpenNewBrowserWindow(show);
+}
Property changes on: chrome/test/wtflib/wtf.cc
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/test/wtflib/wtf.h ('k') | chrome/test/wtflib/wtf.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698