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

Side by Side Diff: views/widget/native_widget_test_utils.h

Issue 7272044: Views views_unittests native widget tests leak (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comment nit. Created 9 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « tools/valgrind/chrome_tests.py ('k') | views/widget/native_widget_test_utils_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef VIEWS_WIDGET_NATIVE_WIDGET_TEST_UTILS_H_ 5 #ifndef VIEWS_WIDGET_NATIVE_WIDGET_TEST_UTILS_H_
6 #define VIEWS_WIDGET_NATIVE_WIDGET_TEST_UTILS_H_ 6 #define VIEWS_WIDGET_NATIVE_WIDGET_TEST_UTILS_H_
7 #pragma once 7 #pragma once
8 8
9 namespace views { 9 namespace views {
10 class View; 10 class View;
11 namespace internal { 11 namespace internal {
12 class NativeWidgetPrivate; 12 class NativeWidgetPrivate;
13 13
14 // Create dummy Widgets for use in testing. 14 // Create dummy widgets for use in testing. Caller owns the returned
15 // |NativeWidgetPrivate| object which, in turn, owns the associated Widget.
15 NativeWidgetPrivate* CreateNativeWidget(); 16 NativeWidgetPrivate* CreateNativeWidget();
16 NativeWidgetPrivate* CreateNativeWidgetWithContents(View* contents_view); 17 NativeWidgetPrivate* CreateNativeSubWidget();
17 NativeWidgetPrivate* CreateNativeWidgetWithParent(NativeWidgetPrivate* parent);
18 18
19 } // namespace internal 19 } // namespace internal
20 } // namespace views 20 } // namespace views
21 21
22 #endif // VIEWS_WIDGET_NATIVE_WIDGET_TEST_UTILS_H_ 22 #endif // VIEWS_WIDGET_NATIVE_WIDGET_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « tools/valgrind/chrome_tests.py ('k') | views/widget/native_widget_test_utils_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698