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

Unified Diff: cc/trees/layer_tree_host_unittest.cc

Issue 1312123005: cc: Fix use-after-free in test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: danakj's review Created 5 years, 4 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 | « no previous file | tools/valgrind/gtest_exclude/cc_unittests.gtest-drmemory_win32.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_unittest.cc
diff --git a/cc/trees/layer_tree_host_unittest.cc b/cc/trees/layer_tree_host_unittest.cc
index b2c10efb0a08f0877521b59f85cb20e1c562bc93..e8795fc9da8220edc529f55b9115b4eea579365f 100644
--- a/cc/trees/layer_tree_host_unittest.cc
+++ b/cc/trees/layer_tree_host_unittest.cc
@@ -2024,6 +2024,8 @@ class LayerTreeHostTestAbortedCommitDoesntStallSynchronousCompositor
}
void ScheduledActionInvalidateOutputSurface() override {
+ if (TestEnded())
danakj 2015/08/29 00:15:05 Cool! Can you just leave a comment here explaining
sunnyps 2015/08/29 00:30:52 Done.
+ return;
ImplThreadTaskRunner()->PostTask(
FROM_HERE,
base::Bind(
« no previous file with comments | « no previous file | tools/valgrind/gtest_exclude/cc_unittests.gtest-drmemory_win32.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698