| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 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 22 matching lines...) Expand all Loading... |
| 33 #include "core/frame/Location.h" | 33 #include "core/frame/Location.h" |
| 34 #include "core/page/Page.h" | 34 #include "core/page/Page.h" |
| 35 #include "platform/SerializedResource.h" | 35 #include "platform/SerializedResource.h" |
| 36 #include "platform/SharedBuffer.h" | 36 #include "platform/SharedBuffer.h" |
| 37 #include "platform/mhtml/MHTMLArchive.h" | 37 #include "platform/mhtml/MHTMLArchive.h" |
| 38 #include "platform/testing/URLTestHelpers.h" | 38 #include "platform/testing/URLTestHelpers.h" |
| 39 #include "platform/testing/UnitTestHelpers.h" | 39 #include "platform/testing/UnitTestHelpers.h" |
| 40 #include "platform/weborigin/KURL.h" | 40 #include "platform/weborigin/KURL.h" |
| 41 #include "platform/weborigin/SchemeRegistry.h" | 41 #include "platform/weborigin/SchemeRegistry.h" |
| 42 #include "public/platform/Platform.h" | 42 #include "public/platform/Platform.h" |
| 43 #include "public/platform/WebCache.h" |
| 43 #include "public/platform/WebString.h" | 44 #include "public/platform/WebString.h" |
| 44 #include "public/platform/WebURL.h" | 45 #include "public/platform/WebURL.h" |
| 45 #include "public/platform/WebURLLoaderMockFactory.h" | 46 #include "public/platform/WebURLLoaderMockFactory.h" |
| 46 #include "public/platform/WebURLRequest.h" | 47 #include "public/platform/WebURLRequest.h" |
| 47 #include "public/platform/WebURLResponse.h" | 48 #include "public/platform/WebURLResponse.h" |
| 48 #include "public/web/WebCache.h" | |
| 49 #include "public/web/WebDocument.h" | 49 #include "public/web/WebDocument.h" |
| 50 #include "public/web/WebFrame.h" | 50 #include "public/web/WebFrame.h" |
| 51 #include "public/web/WebView.h" | 51 #include "public/web/WebView.h" |
| 52 #include "testing/gtest/include/gtest/gtest.h" | 52 #include "testing/gtest/include/gtest/gtest.h" |
| 53 #include "web/tests/FrameTestHelpers.h" | 53 #include "web/tests/FrameTestHelpers.h" |
| 54 | 54 |
| 55 using blink::URLTestHelpers::toKURL; | 55 using blink::URLTestHelpers::toKURL; |
| 56 | 56 |
| 57 namespace blink { | 57 namespace blink { |
| 58 | 58 |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 // Full sandboxing should be turned on. | 278 // Full sandboxing should be turned on. |
| 279 EXPECT_TRUE(document->isSandboxed(SandboxAll)); | 279 EXPECT_TRUE(document->isSandboxed(SandboxAll)); |
| 280 | 280 |
| 281 // MHTML document should be loaded into unique origin. | 281 // MHTML document should be loaded into unique origin. |
| 282 EXPECT_TRUE(document->getSecurityOrigin()->isUnique()); | 282 EXPECT_TRUE(document->getSecurityOrigin()->isUnique()); |
| 283 // Script execution should be disabled. | 283 // Script execution should be disabled. |
| 284 EXPECT_FALSE(document->canExecuteScripts(NotAboutToExecuteScript)); | 284 EXPECT_FALSE(document->canExecuteScripts(NotAboutToExecuteScript)); |
| 285 } | 285 } |
| 286 | 286 |
| 287 } // namespace blink | 287 } // namespace blink |
| OLD | NEW |