This source file includes following definitions.
- RunTestSuite
- main
#include "base/at_exit.h"
#include "base/bind.h"
#include "base/test/launcher/unit_test_launcher.h"
#include "base/test/test_suite.h"
namespace {
class NoAtExitBaseTestSuite : public base::TestSuite {
public:
NoAtExitBaseTestSuite(int argc, char** argv)
: base::TestSuite(argc, argv, false) {
}
};
int RunTestSuite(int argc, char** argv) {
return NoAtExitBaseTestSuite(argc, argv).Run();
}
}
int main(int argc, char** argv) {
base::AtExitManager at_exit;
return base::LaunchUnitTestsSerially(argc,
argv,
base::Bind(&RunTestSuite, argc, argv));
}