1 // Copyright 2013 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 #ifndef MOJO_PUBLIC_TESTS_TEST_SUPPORT_H_
6 #define MOJO_PUBLIC_TESTS_TEST_SUPPORT_H_
8 #include "base/basictypes.h"
9 #include "base/callback.h"
10 #include "base/compiler_specific.h"
11 #include "testing/gtest/include/gtest/gtest.h"
16 class TestBase : public testing::Test {
21 virtual void SetUp() OVERRIDE;
24 DISALLOW_COPY_AND_ASSIGN(TestBase);
27 // Run |single_iteration| an appropriate number of times and report its
28 // performance appropriately. (This actually runs |single_iteration| for a fixed
29 // amount of time and reports the number of iterations per unit time.)
30 void IterateAndReportPerf(const char* test_name,
31 base::Callback<void()> single_iteration);
36 #endif // MOJO_PUBLIC_TESTS_TEST_SUPPORT_H_