Changeset 95647 in webkit


Ignore:
Timestamp:
Sep 21, 2011 10:37:57 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

Ensure TestWebKitAPI works on mac, win, chromium-mac and chromium-linux
https://bugs.webkit.org/show_bug.cgi?id=68206

Patch by Xianzhu Wang <wangxianzhu@chromium.org> on 2011-09-21
Reviewed by Tony Chang.

Source/WebCore:

Added two new wtf headers into ForwardingHeaders/wtf to make
#include <wtf/...h> cross-platform.
No new tests needed.

  • ForwardingHeaders/wtf/MetaAllocator.h: Added.
  • ForwardingHeaders/wtf/RedBlackTree.h: Added.

Source/WebKit/chromium:

  • WebKit.gyp:

Tools:

  • Scripts/webkitdirs.pm:

(determineBaseProductDir): add support for chromium-mac

  • TestWebKitAPI/Tests/WTF/MetaAllocator.cpp:
  • TestWebKitAPI/Tests/WTF/RedBlackTree.cpp:
Location:
trunk
Files:
2 added
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r95646 r95647  
     12011-09-21  Xianzhu Wang  <wangxianzhu@chromium.org>
     2
     3        Ensure TestWebKitAPI works on mac, win, chromium-mac and chromium-linux
     4        https://bugs.webkit.org/show_bug.cgi?id=68206
     5
     6        Reviewed by Tony Chang.
     7
     8        Added two new wtf headers into ForwardingHeaders/wtf to make
     9        #include <wtf/...h> cross-platform.
     10        No new tests needed.
     11
     12        * ForwardingHeaders/wtf/MetaAllocator.h: Added.
     13        * ForwardingHeaders/wtf/RedBlackTree.h: Added.
     14
    1152011-09-21  David Delaune  <david.delaune@googlemail.com>
    216
  • trunk/Source/WebKit/chromium/ChangeLog

    r95640 r95647  
     12011-09-21  Xianzhu Wang  <wangxianzhu@chromium.org>
     2
     3        Ensure TestWebKitAPI works on mac, win, chromium-mac and chromium-linux
     4        https://bugs.webkit.org/show_bug.cgi?id=68206
     5
     6        Reviewed by Tony Chang.
     7
     8        * WebKit.gyp:
     9
    1102011-09-21  chandra shekar vallala  <chandra.vallala@gmail.com>
    211
  • trunk/Source/WebKit/chromium/WebKit.gyp

    r95590 r95647  
    3333        '../../WebCore/WebCore.gypi',
    3434        '../../../Tools/DumpRenderTree/DumpRenderTree.gypi',
     35        '../../../Tools/TestWebKitAPI/TestWebKitAPI.gypi',
    3536        'WebKit.gypi',
    3637        'features.gypi',
     
    11791180                    ]
    11801181                }],
    1181                 ['component!="shared_library"', {
     1182                ['inside_chromium_build==0 or component!="shared_library"', {
    11821183                    'dependencies': [
    11831184                        '../../WebCore/WebCore.gyp/WebCore.gyp:webcore_test_support',
     
    12671268                        'files': ['<(PRODUCT_DIR)/libTestNetscapePlugIn.so'],
    12681269                    }],
     1270                }],
     1271            ],
     1272        },
     1273        {
     1274            'target_name': 'TestWebKitAPI',
     1275            'type': 'executable',
     1276            'dependencies': [
     1277                'webkit',
     1278                '../../WebCore/WebCore.gyp/WebCore.gyp:webcore',
     1279                '<(chromium_src_dir)/base/base.gyp:test_support_base',
     1280                '<(chromium_src_dir)/testing/gtest.gyp:gtest',
     1281                '<(chromium_src_dir)/testing/gmock.gyp:gmock',
     1282                '<(chromium_src_dir)/webkit/support/webkit_support.gyp:webkit_support',
     1283            ],
     1284            'include_dirs': [
     1285                '../../../Tools/TestWebKitAPI',
     1286                # Needed by tests/RunAllTests.cpp, as well as ChromiumCurrentTime.cpp and
     1287                # ChromiumThreading.cpp in chromium shared library configuration.
     1288                'public',
     1289            ],
     1290            'sources': [
     1291                # Reuse the same testing driver of Chromium's webkit_unit_tests.
     1292                'tests/RunAllTests.cpp',
     1293                '<@(TestWebKitAPI_files)',
     1294            ],
     1295            'conditions': [
     1296                ['inside_chromium_build==1 and component=="shared_library"', {
     1297                    'sources': [
     1298                        # To satisfy linking of WTF::currentTime() etc. in shared library configuration,
     1299                        # as the symbols are not exported from the DLLs.
     1300                        'src/ChromiumCurrentTime.cpp',
     1301                        'src/ChromiumThreading.cpp',
     1302                    ],
    12691303                }],
    12701304            ],
  • trunk/Tools/ChangeLog

    r95629 r95647  
     12011-09-21  Xianzhu Wang  <wangxianzhu@chromium.org>
     2
     3        Ensure TestWebKitAPI works on mac, win, chromium-mac and chromium-linux
     4        https://bugs.webkit.org/show_bug.cgi?id=68206
     5
     6        Reviewed by Tony Chang.
     7
     8        * Scripts/webkitdirs.pm:
     9        (determineBaseProductDir): add support for chromium-mac
     10        * TestWebKitAPI/Tests/WTF/MetaAllocator.cpp:
     11        * TestWebKitAPI/Tests/WTF/RedBlackTree.cpp:
     12
    1132011-09-21  Adam Barth  <abarth@webkit.org>
    214
  • trunk/Tools/Scripts/webkitdirs.pm

    r95283 r95647  
    157157        $baseProductDir = $sourceDir;
    158158    } elsif (isChromium()) {
    159         $baseProductDir = "$sourceDir/out";
     159        if (isLinux() || isChromiumAndroid()) {
     160            $baseProductDir = "$sourceDir/out";
     161        } elsif (isDarwin()) {
     162            $baseProductDir = "$sourceDir/Source/WebKit/chromium/xcodebuild";
     163        } elsif (isWindows() || isCygwin()) {
     164            # FIXME: set the correct baseProductDir for chromium-win.
     165        }
    160166    }
    161167
  • trunk/Tools/TestWebKitAPI/TestWebKitAPI.gypi

    r95188 r95647  
    3333        'TestWebKitAPI_files': [
    3434            'Tests/WTF/CheckedArithmeticOperations.cpp',
     35            'Tests/WTF/RedBlackTree.cpp',
    3536            'Tests/WTF/StringOperators.cpp',
    3637            'Tests/WTF/VectorBasic.cpp',
  • trunk/Tools/TestWebKitAPI/Tests/WTF/MetaAllocator.cpp

    r95199 r95647  
    2828
    2929#include "config.h"
    30 #include <JavaScriptCore/MetaAllocator.h>
    31 #include <JavaScriptCore/Vector.h>
     30#include <stdarg.h>
     31#include <wtf/MetaAllocator.h>
     32#include <wtf/Vector.h>
    3233
    3334using namespace WTF;
  • trunk/Tools/TestWebKitAPI/Tests/WTF/RedBlackTree.cpp

    r95199 r95647  
    2828
    2929#include "config.h"
    30 #include <JavaScriptCore/RedBlackTree.h>
    31 #include <JavaScriptCore/Vector.h>
     30#include <wtf/RedBlackTree.h>
     31#include <wtf/Vector.h>
    3232
    3333using namespace WTF;
Note: See TracChangeset for help on using the changeset viewer.