blob: 2a6c6b8e9fbb97f4d29a8a2006557330038c3d61 [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/public/test/unittest_test_suite.h"
#include "base/logging.h"
#include "base/rand_util.h"
#include "base/test/test_suite.h"
#if !defined(OS_IOS)
#include "content/test/test_blink_web_unit_test_support.h"
#endif
#include "third_party/WebKit/public/web/WebKit.h"
namespace content {
UnitTestTestSuite::UnitTestTestSuite(base::TestSuite* test_suite)
: test_suite_(test_suite) {
DCHECK(test_suite);
#if !defined(OS_IOS)
blink_test_support_.reset(new TestBlinkWebUnitTestSupport);
#endif
}
UnitTestTestSuite::~UnitTestTestSuite() {
#if !defined(OS_IOS)
blink_test_support_.reset();
#endif
}
int UnitTestTestSuite::Run() {
return test_suite_->Run();
}
} // namespace content