-
shawnsingh@chromium.org authored
https://bugs.webkit.org/show_bug.cgi?id=90094 Reviewed by Adrienne Walker. This patch adds the WEBKIT_IMPLEMENTATION = 1 define to WebKitUnitTests.gyp. To get it to compile correctly, some string and URL code was refactored and fixed, in particular GURL usage is replaced with KURL usage. * WebKit.gyp: added WEBKIT_IMPLEMENTATION == 1 for unit test code when in shared library added URLTestHelpers to exclusion in shared library build, because it depends on webkit_support * WebKit.gypi: added URLTestHelpers.h and .cpp to the build process * WebKitUnitTests.gyp: added WEBKIT_IMPLEMENTATION == 1 for unit test code when not in shared library. note that in shared library build, RunAllTests.cpp does not have WEBKIT_IMPLEMENTATION == 1. * public/WebDOMMessageEvent.h: (WebKit::WebDOMMessageEvent::WebDOMMessageEvent): * tests/AssociatedURLLoaderTest.cpp: * tests/EventListenerTest.cpp: * tests/FrameTestHelpers.cpp: (WebKit::FrameTestHelpers::loadFrame): * tests/FrameTestHelpers.h: * tests/ListenerLeakTest.cpp: (WebKit::ListenerLeakTest::RunTest): * tests/PopupMenuTest.cpp: * tests/RunAllTests.cpp: * tests/URLTestHelpers.cpp: Added. (URLTestHelpers): (WebKit::URLTestHelpers::registerMockedURLFromBaseURL): (WebKit::URLTestHelpers::registerMockedURLLoad): * tests/URLTestHelpers.h: Copied from Source/WebKit/chromium/public/WebDOMMessageEvent.h. (WebKit): (URLTestHelpers): (WebKit::URLTestHelpers::toKURL): * tests/WebFrameTest.cpp: * tests/WebPageNewSerializerTest.cpp: * tests/WebPageSerializerTest.cpp: * tests/WebViewTest.cpp: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122344 268f45cc-cd09-0410-ab3c-d52691b4dbfc
f9027df3