Index: mojo/public/tests/test_support_private.h |
diff --git a/mojo/public/tests/test_support_private.h b/mojo/public/tests/test_support_private.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..88e65e17c41e7cc28e2426b0a5b38811267ad864 |
--- /dev/null |
+++ b/mojo/public/tests/test_support_private.h |
@@ -0,0 +1,31 @@ |
+// Copyright 2014 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. |
+ |
+#ifndef MOJO_PUBLIC_TESTS_TEST_SUPPORT_PRIVATE_H_ |
+#define MOJO_PUBLIC_TESTS_TEST_SUPPORT_PRIVATE_H_ |
+ |
+#include "mojo/public/tests/test_support.h" |
+ |
+namespace mojo { |
+namespace test { |
+ |
+// Implementors of the test support APIs can use this interface to install their |
+// implementation into the mojo_test_support dynamic library. |
+class MOJO_TEST_SUPPORT_EXPORT TestSupport { |
+ public: |
+ virtual ~TestSupport(); |
+ |
+ static void Init(TestSupport* test_support); |
+ static TestSupport* Get(); |
+ static void Reset(); |
+ |
+ virtual void LogPerfResult(const char* test_name, |
+ double value, |
+ const char* units) = 0; |
+}; |
+ |
+} // namespace test |
+} // namespace mojo |
+ |
+#endif // MOJO_PUBLIC_TESTS_TEST_SUPPORT_PRIVATE_H_ |