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

Side by Side Diff: third_party/WebKit/Source/platform/scroll/ScrollAnimatorTest.cpp

Issue 1845543002: Rename Heap to ThreadHeap (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 EXPECT_TRUE(scrollAnimator->hasAnimationThatRequiresService()); 507 EXPECT_TRUE(scrollAnimator->hasAnimationThatRequiresService());
508 EXPECT_TRUE(result.didScrollX); 508 EXPECT_TRUE(result.didScrollX);
509 EXPECT_FLOAT_EQ(0.0, result.unusedScrollDeltaX); 509 EXPECT_FLOAT_EQ(0.0, result.unusedScrollDeltaX);
510 EXPECT_EQ(scrollAnimator->m_runState, 510 EXPECT_EQ(scrollAnimator->m_runState,
511 ScrollAnimatorCompositorCoordinator::RunState::WaitingToSendToCompositor ); 511 ScrollAnimatorCompositorCoordinator::RunState::WaitingToSendToCompositor );
512 EXPECT_EQ(100, scrollAnimator->desiredTargetPosition().x()); 512 EXPECT_EQ(100, scrollAnimator->desiredTargetPosition().x());
513 EXPECT_EQ(0, scrollAnimator->desiredTargetPosition().y()); 513 EXPECT_EQ(0, scrollAnimator->desiredTargetPosition().y());
514 reset(*scrollAnimator); 514 reset(*scrollAnimator);
515 515
516 // Forced GC in order to finalize objects depending on the mock object. 516 // Forced GC in order to finalize objects depending on the mock object.
517 Heap::collectAllGarbage(); 517 ThreadHeap::collectAllGarbage();
518 } 518 }
519 519
520 } // namespace blink 520 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698