OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013, Opera Software ASA. All rights reserved. | 2 * Copyright (c) 2013, Opera Software ASA. 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 14 matching lines...) Expand all Loading... |
25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
26 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | 26 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
28 * OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #include "config.h" | 31 #include "config.h" |
32 | 32 |
33 #include "FrameTestHelpers.h" | 33 #include "FrameTestHelpers.h" |
34 #include "URLTestHelpers.h" | 34 #include "URLTestHelpers.h" |
35 #include "WebFrameImpl.h" | 35 #include "WebLocalFrameImpl.h" |
36 #include "WebSettings.h" | 36 #include "WebSettings.h" |
37 #include "WebViewImpl.h" | 37 #include "WebViewImpl.h" |
38 #include <gtest/gtest.h> | 38 #include <gtest/gtest.h> |
39 #include "core/page/Page.h" | 39 #include "core/page/Page.h" |
40 #include "core/page/PageSerializer.h" | 40 #include "core/page/PageSerializer.h" |
41 #include "platform/SerializedResource.h" | 41 #include "platform/SerializedResource.h" |
42 #include "public/platform/Platform.h" | 42 #include "public/platform/Platform.h" |
43 #include "public/platform/WebString.h" | 43 #include "public/platform/WebString.h" |
44 #include "public/platform/WebThread.h" | 44 #include "public/platform/WebThread.h" |
45 #include "public/platform/WebURL.h" | 45 #include "public/platform/WebURL.h" |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 | 211 |
212 registerURL("font.html", "text/html"); | 212 registerURL("font.html", "text/html"); |
213 registerURL("font.ttf", "application/octet-stream"); | 213 registerURL("font.ttf", "application/octet-stream"); |
214 | 214 |
215 serialize("font.html"); | 215 serialize("font.html"); |
216 | 216 |
217 EXPECT_TRUE(isSerialized("font.ttf", "application/octet-stream")); | 217 EXPECT_TRUE(isSerialized("font.ttf", "application/octet-stream")); |
218 } | 218 } |
219 | 219 |
220 } | 220 } |
OLD | NEW |