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

Unified Diff: chrome/browser/accessibility/browser_accessibility_manager_unittest.cc

Issue 7639019: Fix BrowserAccessibilityManager valgrind errors. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 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/memcheck/suppressions.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/accessibility/browser_accessibility_manager_unittest.cc
diff --git a/chrome/browser/accessibility/browser_accessibility_manager_unittest.cc b/chrome/browser/accessibility/browser_accessibility_manager_unittest.cc
index af984924ae1ae7788dedcd4cff948e0bc52f0255..babd0496d2561702328e826be227e1d34ddfd55f 100644
--- a/chrome/browser/accessibility/browser_accessibility_manager_unittest.cc
+++ b/chrome/browser/accessibility/browser_accessibility_manager_unittest.cc
@@ -625,4 +625,8 @@ TEST(BrowserAccessibilityManagerTest, TestCreateEmptyDocument) {
// Verify we don't reuse objects that have changed roles.
EXPECT_NE(acc1_2, acc2_2);
+
+ // Ensure we properly cleaned up.
+ delete manager;
Paweł Hajdan Jr. 2011/08/12 17:10:19 How about just making manager a scoped_ptr? Much l
David Tseng 2011/08/12 17:30:30 I totally agree with you in general, but in this c
Chris Guillory 2011/08/12 18:44:06 We had this comment in a previous code review. dma
Chris Guillory 2011/08/12 18:46:08 I think these points are valid and we should use a
+ ASSERT_EQ(0, CountedBrowserAccessibility::global_obj_count_);
}
« no previous file with comments | « no previous file | tools/valgrind/memcheck/suppressions.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698