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

Side by Side Diff: content/browser/service_worker/service_worker_browsertest.cc

Issue 2765503002: Disable ServiceWorkerBrowserTest.CrossSiteTransfer on Linux and CrOS (Closed)
Patch Set: r Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <utility> 10 #include <utility>
(...skipping 2390 matching lines...) Expand 10 before | Expand all | Expand 10 after
2401 { 2401 {
2402 ServiceWorkerStatusCode status = SERVICE_WORKER_ERROR_FAILED; 2402 ServiceWorkerStatusCode status = SERVICE_WORKER_ERROR_FAILED;
2403 RunOnIOThread(base::Bind( 2403 RunOnIOThread(base::Bind(
2404 &ServiceWorkerBlackBoxBrowserTest::FindRegistrationOnIO, 2404 &ServiceWorkerBlackBoxBrowserTest::FindRegistrationOnIO,
2405 base::Unretained(this), 2405 base::Unretained(this),
2406 embedded_test_server()->GetURL("/service_worker/empty.html"), &status)); 2406 embedded_test_server()->GetURL("/service_worker/empty.html"), &status));
2407 EXPECT_EQ(SERVICE_WORKER_ERROR_NOT_FOUND, status); 2407 EXPECT_EQ(SERVICE_WORKER_ERROR_NOT_FOUND, status);
2408 } 2408 }
2409 } 2409 }
2410 2410
2411 #if defined(ANDROID) 2411 // Times out on CrOS and Linux. https://crbug.com/702256
2412 #if defined(ANDROID) || defined(OS_LINUX) || defined(OS_CHROMEOS)
2412 #define MAYBE_CrossSiteTransfer DISABLED_CrossSiteTransfer 2413 #define MAYBE_CrossSiteTransfer DISABLED_CrossSiteTransfer
2413 #else 2414 #else
2414 #define MAYBE_CrossSiteTransfer CrossSiteTransfer 2415 #define MAYBE_CrossSiteTransfer CrossSiteTransfer
2415 #endif 2416 #endif
2416 IN_PROC_BROWSER_TEST_F(ServiceWorkerBrowserTest, MAYBE_CrossSiteTransfer) { 2417 IN_PROC_BROWSER_TEST_F(ServiceWorkerBrowserTest, MAYBE_CrossSiteTransfer) {
2417 StartServerAndNavigateToSetup(); 2418 StartServerAndNavigateToSetup();
2418 // The first page registers a service worker. 2419 // The first page registers a service worker.
2419 const char kRegisterPageUrl[] = "/service_worker/cross_site_xfer.html"; 2420 const char kRegisterPageUrl[] = "/service_worker/cross_site_xfer.html";
2420 const base::string16 kOKTitle1(base::ASCIIToUTF16("OK_1")); 2421 const base::string16 kOKTitle1(base::ASCIIToUTF16("OK_1"));
2421 const base::string16 kFailTitle1(base::ASCIIToUTF16("FAIL_1")); 2422 const base::string16 kFailTitle1(base::ASCIIToUTF16("FAIL_1"));
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
2936 // effect in CanSuspendRenderer(). 2937 // effect in CanSuspendRenderer().
2937 shell()->web_contents()->WasHidden(); 2938 shell()->web_contents()->WasHidden();
2938 EXPECT_TRUE(rph->IsProcessBackgrounded()); 2939 EXPECT_TRUE(rph->IsProcessBackgrounded());
2939 2940
2940 // The process which has service worker thread shouldn't be suspended. 2941 // The process which has service worker thread shouldn't be suspended.
2941 EXPECT_FALSE(memory_coordinator->CanSuspendRenderer(render_process_id)); 2942 EXPECT_FALSE(memory_coordinator->CanSuspendRenderer(render_process_id));
2942 } 2943 }
2943 #endif 2944 #endif
2944 2945
2945 } // namespace content 2946 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698