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

Side by Side Diff: content/browser/cross_site_transfer_browsertest.cc

Issue 702843004: Transfer serviceworker state during cross site navigations too. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 | « base/id_map.h ('k') | content/browser/loader/cross_site_resource_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/command_line.h" 5 #include "base/command_line.h"
6 #include "base/strings/stringprintf.h" 6 #include "base/strings/stringprintf.h"
7 #include "content/browser/loader/resource_dispatcher_host_impl.h" 7 #include "content/browser/loader/resource_dispatcher_host_impl.h"
8 #include "content/public/browser/navigation_entry.h" 8 #include "content/public/browser/navigation_entry.h"
9 #include "content/public/browser/resource_dispatcher_host_delegate.h" 9 #include "content/public/browser/resource_dispatcher_host_delegate.h"
10 #include "content/public/browser/resource_throttle.h" 10 #include "content/public/browser/resource_throttle.h"
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 EXPECT_EQ(1, controller.GetEntryCount()); 452 EXPECT_EQ(1, controller.GetEntryCount());
453 EXPECT_EQ(0, controller.GetCurrentEntryIndex()); 453 EXPECT_EQ(0, controller.GetCurrentEntryIndex());
454 EXPECT_EQ(url1, controller.GetEntryAtIndex(0)->GetURL()); 454 EXPECT_EQ(url1, controller.GetEntryAtIndex(0)->GetURL());
455 455
456 // Make sure the request for url2 did not complete. 456 // Make sure the request for url2 did not complete.
457 EXPECT_FALSE(tracking_delegate().WaitForTrackedURLAndGetCompleted()); 457 EXPECT_FALSE(tracking_delegate().WaitForTrackedURLAndGetCompleted());
458 458
459 shell()->web_contents()->SetDelegate(old_delegate); 459 shell()->web_contents()->SetDelegate(old_delegate);
460 } 460 }
461 461
462 IN_PROC_BROWSER_TEST_F(CrossSiteTransferTest, ServicedByServceWorkerWorks) {
463 // TODO: write me
michaeln 2014/11/13 01:51:21 I think i have two cases to test 1. The SW genera
464 }
465
462 } // namespace content 466 } // namespace content
OLDNEW
« no previous file with comments | « base/id_map.h ('k') | content/browser/loader/cross_site_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698