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

Unified Diff: content/browser/webkit_browsertest.cc

Issue 10821037: Move a number of other tests from browser_tests to content_browsertests. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: a little cleaner Created 8 years, 5 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 | « content/browser/renderer_host/render_view_host_browsertest.cc ('k') | content/content_tests.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « content/browser/renderer_host/render_view_host_browsertest.cc ('k') | content/content_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698