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 30 matching lines...) Expand all Loading... |
41 #include "public/platform/WebURLResponse.h" | 41 #include "public/platform/WebURLResponse.h" |
42 #include "public/platform/WebUnitTestSupport.h" | 42 #include "public/platform/WebUnitTestSupport.h" |
43 #include "public/web/WebSettings.h" | 43 #include "public/web/WebSettings.h" |
44 #include "web/WebLocalFrameImpl.h" | 44 #include "web/WebLocalFrameImpl.h" |
45 #include "web/WebViewImpl.h" | 45 #include "web/WebViewImpl.h" |
46 #include "web/tests/FrameTestHelpers.h" | 46 #include "web/tests/FrameTestHelpers.h" |
47 #include "web/tests/URLTestHelpers.h" | 47 #include "web/tests/URLTestHelpers.h" |
48 #include "wtf/Vector.h" | 48 #include "wtf/Vector.h" |
49 #include <gtest/gtest.h> | 49 #include <gtest/gtest.h> |
50 | 50 |
51 using namespace WebCore; | 51 using namespace blink; |
52 using namespace blink; | 52 using namespace blink; |
53 using blink::URLTestHelpers::toKURL; | 53 using blink::URLTestHelpers::toKURL; |
54 using blink::URLTestHelpers::registerMockedURLLoad; | 54 using blink::URLTestHelpers::registerMockedURLLoad; |
55 | 55 |
56 namespace { | 56 namespace { |
57 | 57 |
58 class PageSerializerTest : public testing::Test { | 58 class PageSerializerTest : public testing::Test { |
59 public: | 59 public: |
60 PageSerializerTest() | 60 PageSerializerTest() |
61 : m_folder(WebString::fromUTF8("pageserializer/")) | 61 : m_folder(WebString::fromUTF8("pageserializer/")) |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 | 200 |
201 registerURL("font.html", "text/html"); | 201 registerURL("font.html", "text/html"); |
202 registerURL("font.ttf", "application/octet-stream"); | 202 registerURL("font.ttf", "application/octet-stream"); |
203 | 203 |
204 serialize("font.html"); | 204 serialize("font.html"); |
205 | 205 |
206 EXPECT_TRUE(isSerialized("font.ttf", "application/octet-stream")); | 206 EXPECT_TRUE(isSerialized("font.ttf", "application/octet-stream")); |
207 } | 207 } |
208 | 208 |
209 } | 209 } |
OLD | NEW |