1/* 2 Copyright (C) 2012 Intel Corporation. All rights reserved. 3 4 This library is free software; you can redistribute it and/or 5 modify it under the terms of the GNU Lesser General Public 6 License as published by the Free Software Foundation; either 7 version 2.1 of the License, or (at your option) any later version. 8 9 This library is distributed in the hope that it will be useful, 10 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 Lesser General Public License for more details. 13 14 You should have received a copy of the GNU Lesser General Public License 15 along with this library; if not, write to the Free Software Foundation, 16 Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17*/ 18 19#ifndef EWK2UnitTestEnvironment_h 20#define EWK2UnitTestEnvironment_h 21 22#include <gtest/gtest.h> 23#include <wtf/text/CString.h> 24 25namespace EWK2UnitTest { 26 27class EWK2UnitTestEnvironment : public ::testing::Environment { 28public: 29 EWK2UnitTestEnvironment(); 30 31 const char* defaultTestPageUrl() const; 32 const char* defaultTheme() const; 33 const char* injectedBundleSample() const; 34 CString urlForResource(const char* resource); 35 CString pathForResource(const char* resource); 36 CString pathForTheme(const char* theme); 37 38 virtual unsigned int defaultWidth() const { return m_defaultWidth; } 39 virtual unsigned int defaultHeight() const { return m_defaultHeight; } 40 41private: 42 unsigned int m_defaultWidth; 43 unsigned int m_defaultHeight; 44}; 45 46} // namespace EWK2UnitTest 47 48#endif // EWK2UnitTestEnvironment_h 49