2011-10-06 15:34:47 +02:00
|
|
|
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
2010-10-03 23:04:50 +02:00
|
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
|
|
// can be found in the LICENSE file.
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
#ifndef CEF_TESTS_UNITTESTS_TEST_SUITE_H_
|
|
|
|
#define CEF_TESTS_UNITTESTS_TEST_SUITE_H_
|
|
|
|
#pragma once
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
#include <string>
|
2011-12-30 21:55:16 +01:00
|
|
|
#include "include/internal/cef_types_wrappers.h"
|
2010-10-03 23:04:50 +02:00
|
|
|
#include "base/test/test_suite.h"
|
|
|
|
|
2011-12-30 21:55:16 +01:00
|
|
|
class CommandLine;
|
|
|
|
|
2010-10-03 23:04:50 +02:00
|
|
|
class CefTestSuite : public TestSuite {
|
2012-01-10 00:46:23 +01:00
|
|
|
public:
|
2011-10-06 15:34:47 +02:00
|
|
|
CefTestSuite(int argc, char** argv);
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2011-12-30 21:55:16 +01:00
|
|
|
// Initialize the current process CommandLine singleton. On Windows, ignores
|
|
|
|
// its arguments (we instead parse GetCommandLineW() directly) because we
|
|
|
|
// don't trust the CRT's parsing of the command line, but it still must be
|
|
|
|
// called to set up the command line.
|
|
|
|
static void InitCommandLine(int argc, const char* const* argv);
|
|
|
|
|
|
|
|
static void GetSettings(CefSettings& settings);
|
2011-11-02 20:50:00 +01:00
|
|
|
static bool GetCachePath(std::string& path);
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
protected:
|
2011-12-30 21:55:16 +01:00
|
|
|
#if defined(OS_MACOSX)
|
2011-10-06 15:34:47 +02:00
|
|
|
virtual void Initialize();
|
2011-12-30 21:55:16 +01:00
|
|
|
#endif
|
2012-01-10 00:46:23 +01:00
|
|
|
|
2011-12-30 21:55:16 +01:00
|
|
|
// The singleton CommandLine representing the current process's command line.
|
|
|
|
static CommandLine* commandline_;
|
2010-10-03 23:04:50 +02:00
|
|
|
};
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
#endif // CEF_TESTS_UNITTESTS_TEST_SUITE_H_
|