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

Side by Side 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: Rebase 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2014 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 PAPPI_TESTS_TEST_COMPOSITOR_H_
6 #define PAPPI_TESTS_TEST_COMPOSITOR_H_
7
8 #include <set>
9 #include <string>
10
11 #include "ppapi/cpp/compositor.h"
12 #include "ppapi/cpp/compositor_layer.h"
13 #include "ppapi/cpp/graphics_3d.h"
14 #include "ppapi/lib/gl/include/GLES2/gl2.h"
15 #include "ppapi/tests/test_case.h"
16
17 class TestCompositor : public TestCase {
18 public:
19 TestCompositor(TestingInstance* instance) : TestCase(instance) {}
20
21 // TestCase implementation.
22 virtual bool Init();
23 virtual void RunTests(const std::string& filter);
24
25 private:
26 // Various tests.
27 std::string TestUnbind();
28 std::string TestRelease();
29 std::string TestReleaseWithoutCommit();
30 std::string TestCommitTwoTimesWithoutChange();
31 std::string TestGeneral();
32
33 // Helper functions
34 std::string CreateTexture(uint32_t* texture);
35 std::string ReleaseTexture(uint32_t texture);
36 std::string CreateImage(pp::ImageData* image);
37 std::string SetColorLayer(pp::CompositorLayer layer, int32_t result);
38
39 };
40
41 #endif // PAPPI_TESTS_TEST_COMPOSItor_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698