summaryrefslogtreecommitdiffstats
path: root/content/renderer
diff options
context:
space:
mode:
authorzty@chromium.org <zty@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-06 11:22:18 +0000
committerzty@chromium.org <zty@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-06 11:22:18 +0000
commitc82d8a30294a151592bb3480562c6ec9e10380f3 (patch)
tree1520894dea6965a53ee2953f29bdc5718288eab5 /content/renderer
parentb35b8842ab5d889c88eb637a96d5ec909e2a4f06 (diff)
downloadchromium_src-c82d8a30294a151592bb3480562c6ec9e10380f3.zip
chromium_src-c82d8a30294a151592bb3480562c6ec9e10380f3.tar.gz
chromium_src-c82d8a30294a151592bb3480562c6ec9e10380f3.tar.bz2
Re-enable content_browsertests on main waterfall.
Disabled the two tests that are crashing on android. TBR=jam BUG=341142 Review URL: https://codereview.chromium.org/153503005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249358 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer')
-rw-r--r--content/renderer/resource_fetcher_browsertest.cc34
1 files changed, 28 insertions, 6 deletions
diff --git a/content/renderer/resource_fetcher_browsertest.cc b/content/renderer/resource_fetcher_browsertest.cc
index 5457fe9..03efe3f 100644
--- a/content/renderer/resource_fetcher_browsertest.cc
+++ b/content/renderer/resource_fetcher_browsertest.cc
@@ -265,9 +265,28 @@ class ResourceFetcherTests : public ContentBrowserTest {
}
};
+#if defined(OS_ANDROID)
+// Disable (http://crbug.com/248796).
+#define MAYBE_ResourceFetcher404 DISABLED_ResourceFetcher404
+#define MAYBE_ResourceFetcherDeletedInCallback \
+ DISABLED_ResourceFetcherDeletedInCallback
+#define MAYBE_ResourceFetcherTimeout DISABLED_ResourceFetcherTimeout
+#define MAYBE_ResourceFetcherDownload DISABLED_ResourceFetcherDownload
+// Disable (http://crbug.com/341142).
+#define MAYBE_ResourceFetcherPost DISABLED_ResourceFetcherPost
+#define MAYBE_ResourceFetcherSetHeader DISABLED_ResourceFetcherSetHeader
+#else
+#define MAYBE_ResourceFetcher404 ResourceFetcher404
+#define MAYBE_ResourceFetcherDeletedInCallback ResourceFetcherDeletedInCallback
+#define MAYBE_ResourceFetcherTimeout ResourceFetcherTimeout
+#define MAYBE_ResourceFetcherDownload ResourceFetcherDownload
+#define MAYBE_ResourceFetcherPost ResourceFetcherPost
+#define MAYBE_ResourceFetcherSetHeader ResourceFetcherSetHeader
+#endif
+
// Test a fetch from the test server.
// If this flakes, use http://crbug.com/51622.
-IN_PROC_BROWSER_TEST_F(ResourceFetcherTests, ResourceFetcherDownload) {
+IN_PROC_BROWSER_TEST_F(ResourceFetcherTests, MAYBE_ResourceFetcherDownload) {
// Need to spin up the renderer.
NavigateToURL(shell(), GURL(kAboutBlankURL));
@@ -279,7 +298,7 @@ IN_PROC_BROWSER_TEST_F(ResourceFetcherTests, ResourceFetcherDownload) {
base::Unretained(this), url));
}
-IN_PROC_BROWSER_TEST_F(ResourceFetcherTests, ResourceFetcher404) {
+IN_PROC_BROWSER_TEST_F(ResourceFetcherTests, MAYBE_ResourceFetcher404) {
// Need to spin up the renderer.
NavigateToURL(shell(), GURL(kAboutBlankURL));
@@ -302,7 +321,7 @@ IN_PROC_BROWSER_TEST_F(ResourceFetcherTests, ResourceFetcherDidFail) {
base::Unretained(this)));
}
-IN_PROC_BROWSER_TEST_F(ResourceFetcherTests, ResourceFetcherTimeout) {
+IN_PROC_BROWSER_TEST_F(ResourceFetcherTests, MAYBE_ResourceFetcherTimeout) {
// Need to spin up the renderer.
NavigateToURL(shell(), GURL(kAboutBlankURL));
@@ -316,7 +335,8 @@ IN_PROC_BROWSER_TEST_F(ResourceFetcherTests, ResourceFetcherTimeout) {
base::Unretained(this), url));
}
-IN_PROC_BROWSER_TEST_F(ResourceFetcherTests, ResourceFetcherDeletedInCallback) {
+IN_PROC_BROWSER_TEST_F(ResourceFetcherTests,
+ MAYBE_ResourceFetcherDeletedInCallback) {
// Need to spin up the renderer.
NavigateToURL(shell(), GURL(kAboutBlankURL));
@@ -331,8 +351,10 @@ IN_PROC_BROWSER_TEST_F(ResourceFetcherTests, ResourceFetcherDeletedInCallback) {
base::Unretained(this), url));
}
+
+
// Test that ResourceFetchers can handle POSTs.
-IN_PROC_BROWSER_TEST_F(ResourceFetcherTests, ResourceFetcherPost) {
+IN_PROC_BROWSER_TEST_F(ResourceFetcherTests, MAYBE_ResourceFetcherPost) {
// Need to spin up the renderer.
NavigateToURL(shell(), GURL(kAboutBlankURL));
@@ -347,7 +369,7 @@ IN_PROC_BROWSER_TEST_F(ResourceFetcherTests, ResourceFetcherPost) {
}
// Test that ResourceFetchers can set headers.
-IN_PROC_BROWSER_TEST_F(ResourceFetcherTests, ResourceFetcherSetHeader) {
+IN_PROC_BROWSER_TEST_F(ResourceFetcherTests, MAYBE_ResourceFetcherSetHeader) {
// Need to spin up the renderer.
NavigateToURL(shell(), GURL(kAboutBlankURL));