Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(177)

Side by Side Diff: mojo/public/tests/test_support.h

Issue 23621056: Initial in-process implementation of some Mojo primitives. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build fix Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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.
4
5 #ifndef MOJO_PUBLIC_TESTS_TEST_SUPPORT_H_
6 #define MOJO_PUBLIC_TESTS_TEST_SUPPORT_H_
7
8 #include "base/basictypes.h"
9 #include "base/callback.h"
10 #include "base/compiler_specific.h"
11 #include "testing/gtest/include/gtest/gtest.h"
12
13 namespace mojo {
14 namespace test {
15
16 class TestBase : public testing::Test {
17 public:
18 TestBase();
19 virtual ~TestBase();
20
21 virtual void SetUp() OVERRIDE;
22
23 private:
24 DISALLOW_COPY_AND_ASSIGN(TestBase);
25 };
26
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);
32
33 } // namespace test
34 } // namespace mojo
35
36 #endif // MOJO_PUBLIC_TESTS_TEST_SUPPORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698