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

Side by Side Diff: ppapi/tests/test_paint_aggregator.cc

Issue 9122012: gcl change rev (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/tests/test_flash.h ('k') | ppapi/tests/test_transport.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « ppapi/tests/test_flash.h ('k') | ppapi/tests/test_transport.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698