| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 26 matching lines...) Expand all Loading... |
| 37 #include "WebView.h" | 37 #include "WebView.h" |
| 38 #include "public/platform/Platform.h" | 38 #include "public/platform/Platform.h" |
| 39 #include "public/platform/WebString.h" | 39 #include "public/platform/WebString.h" |
| 40 #include "public/platform/WebURL.h" | 40 #include "public/platform/WebURL.h" |
| 41 #include "public/platform/WebURLRequest.h" | 41 #include "public/platform/WebURLRequest.h" |
| 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 | 44 |
| 45 #include <gtest/gtest.h> | 45 #include <gtest/gtest.h> |
| 46 | 46 |
| 47 using namespace WebKit; | 47 using namespace blink; |
| 48 using WebKit::URLTestHelpers::toKURL; | 48 using blink::URLTestHelpers::toKURL; |
| 49 | 49 |
| 50 namespace { | 50 namespace { |
| 51 | 51 |
| 52 class TestWebFrameClient : public WebFrameClient { | 52 class TestWebFrameClient : public WebFrameClient { |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 class WebPageSerializerTest : public testing::Test { | 55 class WebPageSerializerTest : public testing::Test { |
| 56 public: | 56 public: |
| 57 WebPageSerializerTest() : m_webView(0), m_supportedSchemes(static_cast<size_
t>(3)) | 57 WebPageSerializerTest() : m_webView(0), m_supportedSchemes(static_cast<size_
t>(3)) |
| 58 { | 58 { |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 EXPECT_TRUE(webVectorContains(resources, "http://www.test.com/innerFrame.png
")); | 184 EXPECT_TRUE(webVectorContains(resources, "http://www.test.com/innerFrame.png
")); |
| 185 EXPECT_TRUE(webVectorContains(resources, "http://www.test.com/flash.swf")); | 185 EXPECT_TRUE(webVectorContains(resources, "http://www.test.com/flash.swf")); |
| 186 // FIXME: for some reason the following resources is missing on one of the b
ot | 186 // FIXME: for some reason the following resources is missing on one of the b
ot |
| 187 // causing the test to fail. Probably a plugin issue. | 187 // causing the test to fail. Probably a plugin issue. |
| 188 // EXPECT_TRUE(webVectorContains(resources, "http://www.test.com/music.mid")
); | 188 // EXPECT_TRUE(webVectorContains(resources, "http://www.test.com/music.mid")
); |
| 189 EXPECT_TRUE(webVectorContains(resources, "http://www.test.com/object.png")); | 189 EXPECT_TRUE(webVectorContains(resources, "http://www.test.com/object.png")); |
| 190 EXPECT_TRUE(webVectorContains(resources, "http://www.test.com/embed.png")); | 190 EXPECT_TRUE(webVectorContains(resources, "http://www.test.com/embed.png")); |
| 191 } | 191 } |
| 192 | 192 |
| 193 } | 193 } |
| OLD | NEW |