| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2015, Google Inc. All rights reserved. | 2 * Copyright (c) 2015, Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 #include "core/frame/FrameOwner.h" | 36 #include "core/frame/FrameOwner.h" |
| 37 #include "core/frame/FrameTypes.h" | 37 #include "core/frame/FrameTypes.h" |
| 38 #include "core/frame/FrameView.h" | 38 #include "core/frame/FrameView.h" |
| 39 #include "core/frame/Settings.h" | 39 #include "core/frame/Settings.h" |
| 40 #include "core/html/HTMLIFrameElement.h" | 40 #include "core/html/HTMLIFrameElement.h" |
| 41 #include "core/loader/DocumentLoader.h" | 41 #include "core/loader/DocumentLoader.h" |
| 42 #include "core/loader/EmptyClients.h" | 42 #include "core/loader/EmptyClients.h" |
| 43 #include "core/page/Page.h" | 43 #include "core/page/Page.h" |
| 44 #include "core/testing/DummyPageHolder.h" | 44 #include "core/testing/DummyPageHolder.h" |
| 45 #include "platform/loader/fetch/FetchInitiatorInfo.h" | 45 #include "platform/loader/fetch/FetchInitiatorInfo.h" |
| 46 #include "platform/loader/fetch/MockResource.h" | |
| 47 #include "platform/loader/fetch/UniqueIdentifier.h" | 46 #include "platform/loader/fetch/UniqueIdentifier.h" |
| 47 #include "platform/loader/testing/MockResource.h" |
| 48 #include "platform/network/ResourceRequest.h" | 48 #include "platform/network/ResourceRequest.h" |
| 49 #include "platform/weborigin/KURL.h" | 49 #include "platform/weborigin/KURL.h" |
| 50 #include "platform/weborigin/SecurityViolationReportingPolicy.h" | 50 #include "platform/weborigin/SecurityViolationReportingPolicy.h" |
| 51 #include "public/platform/WebAddressSpace.h" | 51 #include "public/platform/WebAddressSpace.h" |
| 52 #include "public/platform/WebCachePolicy.h" | 52 #include "public/platform/WebCachePolicy.h" |
| 53 #include "public/platform/WebDocumentSubresourceFilter.h" | 53 #include "public/platform/WebDocumentSubresourceFilter.h" |
| 54 #include "public/platform/WebInsecureRequestPolicy.h" | 54 #include "public/platform/WebInsecureRequestPolicy.h" |
| 55 #include "testing/gmock/include/gmock/gmock.h" | 55 #include "testing/gmock/include/gmock/gmock.h" |
| 56 #include "testing/gtest/include/gtest/gtest.h" | 56 #include "testing/gtest/include/gtest/gtest.h" |
| 57 | 57 |
| (...skipping 843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 901 setFilterPolicy(WebDocumentSubresourceFilter::WouldDisallow); | 901 setFilterPolicy(WebDocumentSubresourceFilter::WouldDisallow); |
| 902 | 902 |
| 903 EXPECT_EQ(ResourceRequestBlockedReason::None, canRequest()); | 903 EXPECT_EQ(ResourceRequestBlockedReason::None, canRequest()); |
| 904 EXPECT_EQ(0, getFilteredLoadCallCount()); | 904 EXPECT_EQ(0, getFilteredLoadCallCount()); |
| 905 | 905 |
| 906 EXPECT_EQ(ResourceRequestBlockedReason::None, canRequestPreload()); | 906 EXPECT_EQ(ResourceRequestBlockedReason::None, canRequestPreload()); |
| 907 EXPECT_EQ(0, getFilteredLoadCallCount()); | 907 EXPECT_EQ(0, getFilteredLoadCallCount()); |
| 908 } | 908 } |
| 909 | 909 |
| 910 } // namespace blink | 910 } // namespace blink |
| OLD | NEW |