| 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
|
|
|
|
|