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