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

Unified Diff: ui/aura/test/test_window_delegate.h

Issue 10916095: Fix leaks in aura_unittests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | « ui/aura/shared/input_method_event_filter_unittest.cc ('k') | ui/aura/test/test_window_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/test/test_window_delegate.h
diff --git a/ui/aura/test/test_window_delegate.h b/ui/aura/test/test_window_delegate.h
index 532ad13da227a4703a30d000a2a60eb1b43bb4d9..bd11017c28ba3b6999fa0f97ef728aa5f57c60e3 100644
--- a/ui/aura/test/test_window_delegate.h
+++ b/ui/aura/test/test_window_delegate.h
@@ -21,6 +21,10 @@ class TestWindowDelegate : public WindowDelegate {
TestWindowDelegate();
virtual ~TestWindowDelegate();
+ // Returns a TestWindowDelegate that delete itself when
+ // the associated window is destroyed.
+ static TestWindowDelegate* CreateSelfDestroyingDelegate();
+
void set_window_component(int window_component) {
window_component_ = window_component;
}
@@ -53,6 +57,7 @@ class TestWindowDelegate : public WindowDelegate {
private:
int window_component_;
+ bool delete_on_destroyed_;
DISALLOW_COPY_AND_ASSIGN(TestWindowDelegate);
};
« no previous file with comments | « ui/aura/shared/input_method_event_filter_unittest.cc ('k') | ui/aura/test/test_window_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698