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

Unified Diff: content/browser/renderer_host/render_view_host_browsertest.cc

Issue 2175933002: More aggressive IO asserts in content_browsertests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use 1 less instance of ScopedAllowIO in DumpAccessibilityTestBase::RunTestForPlatform. Created 4 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
Index: content/browser/renderer_host/render_view_host_browsertest.cc
diff --git a/content/browser/renderer_host/render_view_host_browsertest.cc b/content/browser/renderer_host/render_view_host_browsertest.cc
index e593e8f3c9c235547cff668b4214f4243b6ce324..9b260626a01a7fa5dd5d202ee4a108f9fc08e363 100644
--- a/content/browser/renderer_host/render_view_host_browsertest.cc
+++ b/content/browser/renderer_host/render_view_host_browsertest.cc
@@ -87,11 +87,7 @@ IN_PROC_BROWSER_TEST_F(RenderViewHostTest, BaseURLParam) {
EXPECT_EQ(1, observer.navigation_count());
// But should be set to the original page when reading MHTML.
- base::FilePath content_test_data_dir;
- ASSERT_TRUE(PathService::Get(DIR_TEST_DATA, &content_test_data_dir));
- test_url = net::FilePathToFileURL(
- content_test_data_dir.AppendASCII("google.mht"));
- NavigateToURL(shell(), test_url);
+ NavigateToURL(shell(), GetTestUrl(nullptr, "google.mht"));
EXPECT_EQ("http://www.google.com/", observer.base_url().spec());
}

Powered by Google App Engine
This is Rietveld 408576698