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

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

Issue 1254523002: Temporarily disable ServiceWorkerVersionBrowserTest.FetchEvent_respondWithRejection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/callback.h" 6 #include "base/callback.h"
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/run_loop.h" 8 #include "base/run_loop.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 1064 matching lines...) Expand 10 before | Expand all | Expand 10 after
1075 EXPECT_EQ(expected_headers, response.headers); 1075 EXPECT_EQ(expected_headers, response.headers);
1076 1076
1077 std::string body; 1077 std::string body;
1078 RunOnIOThread( 1078 RunOnIOThread(
1079 base::Bind(&ReadResponseBody, 1079 base::Bind(&ReadResponseBody,
1080 &body, base::Owned(blob_data_handle.release()))); 1080 &body, base::Owned(blob_data_handle.release())));
1081 EXPECT_EQ("This resource is gone. Gone, gone, gone.", body); 1081 EXPECT_EQ("This resource is gone. Gone, gone, gone.", body);
1082 } 1082 }
1083 1083
1084 IN_PROC_BROWSER_TEST_F(ServiceWorkerVersionBrowserTest, 1084 IN_PROC_BROWSER_TEST_F(ServiceWorkerVersionBrowserTest,
1085 FetchEvent_respondWithRejection) { 1085 DISABLED_FetchEvent_respondWithRejection) {
1086 ServiceWorkerFetchEventResult result; 1086 ServiceWorkerFetchEventResult result;
1087 ServiceWorkerResponse response; 1087 ServiceWorkerResponse response;
1088 scoped_ptr<storage::BlobDataHandle> blob_data_handle; 1088 scoped_ptr<storage::BlobDataHandle> blob_data_handle;
1089 1089
1090 RunOnIOThread(base::Bind(&self::SetUpRegistrationOnIOThread, this, 1090 RunOnIOThread(base::Bind(&self::SetUpRegistrationOnIOThread, this,
1091 "/service_worker/fetch_event_rejected.js")); 1091 "/service_worker/fetch_event_rejected.js"));
1092 1092
1093 ConsoleListener console_listener; 1093 ConsoleListener console_listener;
1094 version_->embedded_worker()->AddListener(&console_listener); 1094 version_->embedded_worker()->AddListener(&console_listener);
1095 1095
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
1517 ASSERT_EQ(SERVICE_WORKER_OK, status); 1517 ASSERT_EQ(SERVICE_WORKER_OK, status);
1518 // Stop the worker. 1518 // Stop the worker.
1519 StopWorker(SERVICE_WORKER_OK); 1519 StopWorker(SERVICE_WORKER_OK);
1520 // Restart the worker. 1520 // Restart the worker.
1521 StartWorker(SERVICE_WORKER_OK); 1521 StartWorker(SERVICE_WORKER_OK);
1522 // Stop the worker. 1522 // Stop the worker.
1523 StopWorker(SERVICE_WORKER_OK); 1523 StopWorker(SERVICE_WORKER_OK);
1524 } 1524 }
1525 1525
1526 } // namespace content 1526 } // 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