Index: content/browser/webkit_browsertest.cc |
=================================================================== |
--- content/browser/webkit_browsertest.cc (revision 148517) |
+++ content/browser/webkit_browsertest.cc (working copy) |
@@ -2,16 +2,16 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "chrome/browser/ui/browser.h" |
-#include "chrome/browser/ui/browser_tabstrip.h" |
-#include "chrome/test/base/in_process_browser_test.h" |
-#include "chrome/test/base/ui_test_utils.h" |
#include "content/browser/web_contents/web_contents_impl.h" |
+#include "content/public/browser/web_contents.h" |
+#include "content/shell/shell.h" |
+#include "content/test/content_browser_test.h" |
+#include "content/test/content_browser_test_utils.h" |
#include "content/test/net/url_request_abort_on_end_job.h" |
-typedef InProcessBrowserTest WebKitBrowserTest; |
+namespace content { |
-using content::WebContents; |
+typedef ContentBrowserTest WebKitBrowserTest; |
const char kAsyncScriptThatAbortsOnEndPage[] = |
"files/webkit/async_script_abort_on_end.html"; |
@@ -27,14 +27,13 @@ |
URLRequestAbortOnEndJob::AddUrlHandler(); |
GURL url = test_server()->GetURL(kAsyncScriptThatAbortsOnEndPage); |
- ui_test_utils::NavigateToURL(browser(), url); |
+ NavigateToURL(shell(), url); |
- WebContents* web_contents = chrome::GetActiveWebContents(browser()); |
// If you are seeing this test fail, please strongly investigate the |
// possibility that http://crbug.com/75604 and |
// https://bugs.webkit.org/show_bug.cgi?id=71122 have reverted before |
// marking this as flakey. |
- EXPECT_FALSE(web_contents->IsCrashed()); |
+ EXPECT_FALSE(shell()->web_contents()->IsCrashed()); |
} |
// This is a browser test because the DumpRenderTree framework holds |
@@ -51,8 +50,9 @@ |
URLRequestAbortOnEndJob::AddUrlHandler(); |
GURL url = test_server()->GetURL(kXsltBadImportPage); |
- ui_test_utils::NavigateToURL(browser(), url); |
+ NavigateToURL(shell(), url); |
- WebContents* web_contents = chrome::GetActiveWebContents(browser()); |
- EXPECT_FALSE(web_contents->IsCrashed()); |
+ EXPECT_FALSE(shell()->web_contents()->IsCrashed()); |
} |
+ |
+} // namespace content |