1// Copyright (c) 2011 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 PPAPI_TESTS_TEST_PAINT_AGGREGATOR_H_
6#define PPAPI_TESTS_TEST_PAINT_AGGREGATOR_H_
7
8#include "ppapi/tests/test_case.h"
9
10class TestPaintAggregator : public TestCase {
11 public:
12  TestPaintAggregator(TestingInstance* instance) : TestCase(instance) {}
13
14  // TestCase implementation.
15  virtual bool Init();
16  virtual void RunTests(const std::string& filter);
17
18 private:
19  std::string TestInitialState();
20  std::string TestSingleInvalidation();
21  std::string TestDoubleDisjointInvalidation();
22  std::string TestSingleScroll();
23  std::string TestDoubleOverlappingScroll();
24  std::string TestNegatingScroll();
25  std::string TestDiagonalScroll();
26  std::string TestContainedPaintAfterScroll();
27  std::string TestContainedPaintBeforeScroll();
28  std::string TestContainedPaintsBeforeAndAfterScroll();
29  std::string TestLargeContainedPaintAfterScroll();
30  std::string TestLargeContainedPaintBeforeScroll();
31  std::string TestOverlappingPaintBeforeScroll();
32  std::string TestOverlappingPaintAfterScroll();
33  std::string TestDisjointPaintBeforeScroll();
34  std::string TestDisjointPaintAfterScroll();
35  std::string TestContainedPaintTrimmedByScroll();
36  std::string TestContainedPaintEliminatedByScroll();
37  std::string TestContainedPaintAfterScrollTrimmedByScrollDamage();
38  std::string TestContainedPaintAfterScrollEliminatedByScrollDamage();
39};
40
41#endif  // PPAPI_TESTS_TEST_PAINT_AGGREGATOR_H_
42