| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ppapi/tests/test_paint_aggregator.h" | 5 #include "ppapi/tests/test_paint_aggregator.h" |
| 6 | 6 |
| 7 #include "ppapi/cpp/paint_aggregator.h" | |
| 8 #include "ppapi/tests/testing_instance.h" | 7 #include "ppapi/tests/testing_instance.h" |
| 8 #include "ppapi/utility/graphics/paint_aggregator.h" |
| 9 | 9 |
| 10 REGISTER_TEST_CASE(PaintAggregator); | 10 REGISTER_TEST_CASE(PaintAggregator); |
| 11 | 11 |
| 12 bool TestPaintAggregator::Init() { | 12 bool TestPaintAggregator::Init() { |
| 13 return true; | 13 return true; |
| 14 } | 14 } |
| 15 | 15 |
| 16 void TestPaintAggregator::RunTests(const std::string& filter) { | 16 void TestPaintAggregator::RunTests(const std::string& filter) { |
| 17 RUN_TEST(InitialState, filter); | 17 RUN_TEST(InitialState, filter); |
| 18 RUN_TEST(SingleInvalidation, filter); | 18 RUN_TEST(SingleInvalidation, filter); |
| (...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 | 417 |
| 418 ASSERT_TRUE(greg.HasPendingUpdate()); | 418 ASSERT_TRUE(greg.HasPendingUpdate()); |
| 419 | 419 |
| 420 ASSERT_FALSE(greg.GetPendingUpdate().scroll_rect.IsEmpty()); | 420 ASSERT_FALSE(greg.GetPendingUpdate().scroll_rect.IsEmpty()); |
| 421 ASSERT_TRUE(1U == greg.GetPendingUpdate().paint_rects.size()); | 421 ASSERT_TRUE(1U == greg.GetPendingUpdate().paint_rects.size()); |
| 422 | 422 |
| 423 ASSERT_TRUE(scroll_rect == greg.GetPendingUpdate().scroll_rect); | 423 ASSERT_TRUE(scroll_rect == greg.GetPendingUpdate().scroll_rect); |
| 424 ASSERT_TRUE(expected_scroll_damage == greg.GetPendingUpdate().paint_rects[0]); | 424 ASSERT_TRUE(expected_scroll_damage == greg.GetPendingUpdate().paint_rects[0]); |
| 425 PASS(); | 425 PASS(); |
| 426 } | 426 } |
| OLD | NEW |