[Android WebView] Fix webview perf bot switchover to use org.chromium.webview_shell...
[chromium-blink-merge.git] / content / public / test / unittest_test_suite.cc
blob2a6c6b8e9fbb97f4d29a8a2006557330038c3d61
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.
5 #include "content/public/test/unittest_test_suite.h"
7 #include "base/logging.h"
8 #include "base/rand_util.h"
9 #include "base/test/test_suite.h"
10 #if !defined(OS_IOS)
11 #include "content/test/test_blink_web_unit_test_support.h"
12 #endif
13 #include "third_party/WebKit/public/web/WebKit.h"
15 namespace content {
17 UnitTestTestSuite::UnitTestTestSuite(base::TestSuite* test_suite)
18 : test_suite_(test_suite) {
19 DCHECK(test_suite);
20 #if !defined(OS_IOS)
21 blink_test_support_.reset(new TestBlinkWebUnitTestSupport);
22 #endif
25 UnitTestTestSuite::~UnitTestTestSuite() {
26 #if !defined(OS_IOS)
27 blink_test_support_.reset();
28 #endif
31 int UnitTestTestSuite::Run() {
32 return test_suite_->Run();
35 } // namespace content