1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef WEBKIT_SUPPORT_WEBKIT_SUPPORT_H_ 6 #define WEBKIT_SUPPORT_WEBKIT_SUPPORT_H_ 7 8 // This package provides functions used by DumpRenderTree/chromium. 9 namespace webkit_support { 10 11 // Initializes or terminates a test environment. 12 // |unit_test_mode| should be set to true when running in a TestSuite, in which 13 // case no AtExitManager is created and ICU is not initialized (as it is already 14 // done by the TestSuite). 15 // SetUpTestEnvironment() and SetUpTestEnvironmentForUnitTests() calls 16 // WebKit::initialize(). 17 // TearDownTestEnvironment() calls WebKit::shutdown(). 18 // SetUpTestEnvironmentForUnitTests() should be used when running in a 19 // TestSuite, in which case no AtExitManager is created and ICU is not 20 // initialized (as it is already done by the TestSuite). 21 void SetUpTestEnvironmentForUnitTests(); 22 void TearDownTestEnvironment(); 23 24 } // namespace webkit_support 25 26 #endif // WEBKIT_SUPPORT_WEBKIT_SUPPORT_H_ 27