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

Unified Diff: ppapi/tests/test_compositor.h

Issue 324983005: [PPAPI] Add browser tests for compositor API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@compositor_api_impl_new
Patch Set: Disable the test on MACOSX Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/proxy/compositor_resource.cc ('k') | ppapi/tests/test_compositor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/test_compositor.h
diff --git a/ppapi/tests/test_compositor.h b/ppapi/tests/test_compositor.h
new file mode 100644
index 0000000000000000000000000000000000000000..6287e6dcd97c1aa5d25f5c9e138fd57d65e15709
--- /dev/null
+++ b/ppapi/tests/test_compositor.h
@@ -0,0 +1,52 @@
+// Copyright (c) 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 PAPPI_TESTS_TEST_COMPOSITOR_H_
+#define PAPPI_TESTS_TEST_COMPOSITOR_H_
+
+#include <set>
+#include <string>
+
+#include "ppapi/cpp/compositor.h"
+#include "ppapi/cpp/compositor_layer.h"
+#include "ppapi/cpp/graphics_3d.h"
+#include "ppapi/lib/gl/include/GLES2/gl2.h"
+#include "ppapi/tests/test_case.h"
+
+class TestCompositor : public TestCase {
+ public:
+ TestCompositor(TestingInstance* instance) : TestCase(instance) {}
+
+ // TestCase implementation.
+ virtual bool Init();
+ virtual void RunTests(const std::string& filter);
+
+ private:
+ // Various tests.
+ std::string TestRelease();
+ std::string TestReleaseWithoutCommit();
+ std::string TestCommitTwoTimesWithoutChange();
+ std::string TestGeneral();
+
+ std::string TestReleaseUnbound();
+ std::string TestReleaseWithoutCommitUnbound();
+ std::string TestCommitTwoTimesWithoutChangeUnbound();
+ std::string TestGeneralUnbound();
+
+ std::string TestBindUnbind();
+
+ std::string TestReleaseInternal(bool bind);
+ std::string TestReleaseWithoutCommitInternal(bool bind);
+ std::string TestCommitTwoTimesWithoutChangeInternal(bool bind);
+ std::string TestGeneralInternal(bool bind);
+
+ // Helper functions
+ std::string CreateTexture(uint32_t* texture);
+ std::string ReleaseTexture(uint32_t texture);
+ std::string CreateImage(pp::ImageData* image);
+ std::string SetColorLayer(pp::CompositorLayer layer, int32_t result);
+
+};
+
+#endif // PAPPI_TESTS_TEST_COMPOSItor_H_
« no previous file with comments | « ppapi/proxy/compositor_resource.cc ('k') | ppapi/tests/test_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698