| OLD | NEW |
| 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 "content/browser/site_per_process_browsertest.h" | 5 #include "content/browser/site_per_process_browsertest.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 2389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2400 void FollowRedirect() override {} | 2400 void FollowRedirect() override {} |
| 2401 void SetPriority(net::RequestPriority priority, | 2401 void SetPriority(net::RequestPriority priority, |
| 2402 int32_t intra_priority_value) override {} | 2402 int32_t intra_priority_value) override {} |
| 2403 }; | 2403 }; |
| 2404 | 2404 |
| 2405 class FailingLoadFactory : public mojom::URLLoaderFactory { | 2405 class FailingLoadFactory : public mojom::URLLoaderFactory { |
| 2406 public: | 2406 public: |
| 2407 FailingLoadFactory() {} | 2407 FailingLoadFactory() {} |
| 2408 ~FailingLoadFactory() override {} | 2408 ~FailingLoadFactory() override {} |
| 2409 | 2409 |
| 2410 void CreateLoaderAndStart(mojom::URLLoaderAssociatedRequest loader, | 2410 void CreateLoaderAndStart(mojom::URLLoaderRequest loader, |
| 2411 int32_t routing_id, | 2411 int32_t routing_id, |
| 2412 int32_t request_id, | 2412 int32_t request_id, |
| 2413 uint32_t options, | 2413 uint32_t options, |
| 2414 const ResourceRequest& request, | 2414 const ResourceRequest& request, |
| 2415 mojom::URLLoaderClientPtr client, | 2415 mojom::URLLoaderClientPtr client, |
| 2416 const net::MutableNetworkTrafficAnnotationTag& | 2416 const net::MutableNetworkTrafficAnnotationTag& |
| 2417 traffic_annotation) override { | 2417 traffic_annotation) override { |
| 2418 new FailingURLLoaderImpl(std::move(client)); | 2418 new FailingURLLoaderImpl(std::move(client)); |
| 2419 } | 2419 } |
| 2420 void SyncLoad(int32_t routing_id, | 2420 void SyncLoad(int32_t routing_id, |
| (...skipping 7908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10329 // Verify that inertness was preserved across the navigation. | 10329 // Verify that inertness was preserved across the navigation. |
| 10330 EXPECT_TRUE(ExecuteScriptAndExtractString( | 10330 EXPECT_TRUE(ExecuteScriptAndExtractString( |
| 10331 iframe_node, | 10331 iframe_node, |
| 10332 "text2.focus();" | 10332 "text2.focus();" |
| 10333 "domAutomationController.send(document.activeElement.id);", | 10333 "domAutomationController.send(document.activeElement.id);", |
| 10334 &focused_element)); | 10334 &focused_element)); |
| 10335 EXPECT_EQ("", focused_element); | 10335 EXPECT_EQ("", focused_element); |
| 10336 } | 10336 } |
| 10337 | 10337 |
| 10338 } // namespace content | 10338 } // namespace content |
| OLD | NEW |