| Index: Source/platform/weborigin/SecurityPolicyTest.cpp
|
| diff --git a/Source/core/svg/SVGAnimatedLengthList.h b/Source/platform/weborigin/SecurityPolicyTest.cpp
|
| similarity index 77%
|
| copy from Source/core/svg/SVGAnimatedLengthList.h
|
| copy to Source/platform/weborigin/SecurityPolicyTest.cpp
|
| index 8b4f5f11713fd7671bb238493dd7462510445e5b..ebce73ba3521cb1b04524078e96920238e792d8e 100644
|
| --- a/Source/core/svg/SVGAnimatedLengthList.h
|
| +++ b/Source/platform/weborigin/SecurityPolicyTest.cpp
|
| @@ -28,16 +28,21 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef SVGAnimatedLengthList_h
|
| -#define SVGAnimatedLengthList_h
|
| +#include "config.h"
|
| +#include "platform/weborigin/SecurityPolicy.h"
|
|
|
| -#include "core/svg/SVGLengthListTearOff.h"
|
| -#include "core/svg/properties/NewSVGAnimatedProperty.h"
|
| +#include "platform/weborigin/KURL.h"
|
| +#include <gtest/gtest.h>
|
|
|
| -namespace WebCore {
|
| +using WebCore::KURL;
|
| +using WebCore::SecurityPolicy;
|
|
|
| -typedef NewSVGAnimatedProperty<SVGLengthList> SVGAnimatedLengthList;
|
| +namespace {
|
|
|
| -} // namespace WebCore
|
| +TEST(SecurityPolicyTest, ReferrerIsAlwaysAWebURL)
|
| +{
|
| + EXPECT_TRUE(String() == SecurityPolicy::generateReferrerHeader(WebCore::ReferrerPolicyAlways, KURL(WebCore::ParsedURLString, "http://example.com/"), String::fromUTF8("chrome://somepage/")));
|
| +}
|
| +
|
| +} // namespace
|
|
|
| -#endif
|
|
|