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

Unified Diff: cc/layers/render_surface_unittest.cc

Issue 2360003002: cc: Compute SurfacePropertyChanged without depending on owning layer (Closed)
Patch Set: Address review comment Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/render_surface_impl.cc ('k') | cc/proto/layer.proto » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/render_surface_unittest.cc
diff --git a/cc/layers/render_surface_unittest.cc b/cc/layers/render_surface_unittest.cc
index 15fc527527aebab501166d21163a629e0f0782b3..45f8e2fa1142f749cefa5fc250bf0c616dd857b6 100644
--- a/cc/layers/render_surface_unittest.cc
+++ b/cc/layers/render_surface_unittest.cc
@@ -23,14 +23,14 @@
namespace cc {
namespace {
-#define EXECUTE_AND_VERIFY_SURFACE_CHANGED(code_to_test) \
- render_surface->ResetPropertyChangedFlag(); \
- code_to_test; \
+#define EXECUTE_AND_VERIFY_SURFACE_CHANGED(code_to_test) \
+ render_surface->ResetPropertyChangedFlags(); \
+ code_to_test; \
EXPECT_TRUE(render_surface->SurfacePropertyChanged())
-#define EXECUTE_AND_VERIFY_SURFACE_DID_NOT_CHANGE(code_to_test) \
- render_surface->ResetPropertyChangedFlag(); \
- code_to_test; \
+#define EXECUTE_AND_VERIFY_SURFACE_DID_NOT_CHANGE(code_to_test) \
+ render_surface->ResetPropertyChangedFlags(); \
+ code_to_test; \
EXPECT_FALSE(render_surface->SurfacePropertyChanged())
TEST(RenderSurfaceTest, VerifySurfaceChangesAreTrackedProperly) {
« no previous file with comments | « cc/layers/render_surface_impl.cc ('k') | cc/proto/layer.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698