summaryrefslogtreecommitdiffstats
path: root/ppapi/tests/test_uma.h
diff options
context:
space:
mode:
authorelijahtaylor@google.com <elijahtaylor@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-29 23:27:21 +0000
committerelijahtaylor@google.com <elijahtaylor@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-29 23:27:21 +0000
commit2687f11c2bd2c52231571f2f51ea4c60587a66da (patch)
tree5580bbe9a8c48f847713ec552a0faddf84d42478 /ppapi/tests/test_uma.h
parent9ab907d9ce11a1a6791f9a22cd3a43c47fe4a60e (diff)
downloadchromium_src-2687f11c2bd2c52231571f2f51ea4c60587a66da.zip
chromium_src-2687f11c2bd2c52231571f2f51ea4c60587a66da.tar.gz
chromium_src-2687f11c2bd2c52231571f2f51ea4c60587a66da.tar.bz2
Add UMA private PPAPI interface for UMA logging from NaCl plugin
BUG= none TEST= manual test of ppapi_tests, run UMA tests Review URL: http://codereview.chromium.org/6903084 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83622 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/tests/test_uma.h')
-rw-r--r--ppapi/tests/test_uma.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/ppapi/tests/test_uma.h b/ppapi/tests/test_uma.h
new file mode 100644
index 0000000..0a60fde
--- /dev/null
+++ b/ppapi/tests/test_uma.h
@@ -0,0 +1,31 @@
+// Copyright (c) 2011 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 PAPPI_TESTS_TEST_UMA_H_
+#define PAPPI_TESTS_TEST_UMA_H_
+
+#include <string>
+
+#include "ppapi/tests/test_case.h"
+
+struct PPB_UMA_Private;
+
+class TestUMA : public TestCase {
+ public:
+ explicit TestUMA(TestingInstance* instance) : TestCase(instance) {}
+
+ // TestCase implementation.
+ virtual bool Init();
+ virtual void RunTest();
+
+ private:
+ std::string TestCount();
+ std::string TestTime();
+ std::string TestEnum();
+
+ // Used by the tests that access the C API directly.
+ const PPB_UMA_Private* uma_interface_;
+};
+
+#endif // PAPPI_TESTS_TEST_BUFFER_H_