Changeset 142027 in webkit


Ignore:
Timestamp:
Feb 6, 2013 1:35:55 PM (11 years ago)
Author:
dcheng@chromium.org
Message:

[chromium] Remove "config.h" header from WebUnitTests.cpp
https://bugs.webkit.org/show_bug.cgi?id=108966

Reviewed by Tony Chang.

This file includes headers from base/ in Chromium, and config.h
conflicts with base/logging.h. Rather than teaching certain files in
base/ not to #include base/logging.h, remove the config.h include
here. The ASSERT isn't really necessary, as attempting to run a null
test suite won't go very far anyway.

  • tests/WebUnitTests.cpp:

(WebKit::RunAllUnitTests):

Location:
trunk/Source/WebKit/chromium
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/chromium/ChangeLog

    r142025 r142027  
     12013-02-06  Daniel Cheng  <dcheng@google.com>
     2
     3        [chromium] Remove "config.h" header from WebUnitTests.cpp
     4        https://bugs.webkit.org/show_bug.cgi?id=108966
     5
     6        Reviewed by Tony Chang.
     7
     8        This file includes headers from base/ in Chromium, and config.h
     9        conflicts with base/logging.h. Rather than teaching certain files in
     10        base/ not to #include base/logging.h, remove the config.h include
     11        here. The ASSERT isn't really necessary, as attempting to run a null
     12        test suite won't go very far anyway.
     13
     14        * tests/WebUnitTests.cpp:
     15        (WebKit::RunAllUnitTests):
     16
    1172013-02-06  Terry Anderson  <tdanderson@chromium.org>
    218
  • trunk/Source/WebKit/chromium/tests/WebUnitTests.cpp

    r98269 r142027  
    2929 */
    3030
    31 #include "config.h"
    3231#include "WebUnitTests.h"
    3332
     33// FIXME: Can we move this to webkit/support and fix the layering violation?
    3434#include <base/test/test_suite.h>
    3535#include <gmock/gmock.h>
     
    4747int RunAllUnitTests()
    4848{
    49     ASSERT(testSuite);
    50 
    5149    int result = testSuite->Run();
    5250
Note: See TracChangeset for help on using the changeset viewer.