OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "base/scoped_ptr.h" |
| 6 #include "base/string_util.h" |
| 7 #include "base/utf_string_conversions.h" |
| 8 #include "chrome/test/automation/tab_proxy.h" |
| 9 #include "googleurl/src/gurl.h" |
| 10 #include "chrome/test/wtflib/wtf_testsuite.h" |
| 11 |
| 12 WTFTestSuite::WTFTestSuite(bool clear_profile, std::wstring homepage) |
| 13 : UITestBase() { |
| 14 set_clear_profile(clear_profile); |
| 15 set_homepage(homepage); |
| 16 } |
| 17 |
| 18 WTFTestSuite::~WTFTestSuite() { |
| 19 } |
| 20 |
| 21 void WTFTestSuite::Initialize(const FilePath& browser_dir) { |
| 22 UITestBase::SetBrowserDirectory(browser_dir); |
| 23 } |
| 24 |
| 25 void WTFTestSuite::SetUp() { |
| 26 UITestBase::SetUp(); |
| 27 } |
| 28 |
| 29 void WTFTestSuite::TearDown() { |
| 30 UITestBase::TearDown(); |
| 31 } |
| 32 |
| 33 void WTFTestSuite::NavigateToURL(const std::string url_string) { |
| 34 GURL url(url_string.c_str()); |
| 35 UITestBase::NavigateToURL(url); |
| 36 } |
| 37 |
| 38 bool WTFTestSuite::OpenNewBrowserWindow(bool show) { |
| 39 return automation()->OpenNewBrowserWindow(Browser::TYPE_NORMAL, show); |
| 40 } |
OLD | NEW |