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

Issue 7272044: Views views_unittests native widget tests leak (Closed)

Created:
9 years, 5 months ago by dhollowa
Modified:
9 years, 5 months ago
CC:
chromium-reviews, Alexander Potapenko, pam+watch_chromium.org, Paweł Hajdan Jr., stuartmorgan+watch_chromium.org
Visibility:
Public.

Description

Views views_unittests native widget tests leak Eliminates leaks from NativeWidgetTest.*. Adds additional test target to valgrind wrapper script. Refactors native_widget_test_utils_{gtk|win}.cc to avoid duplication. BUG=87805 TEST=tools/valgrind/chrome_tests.sh views --gtest_filter=NativeWidgetTest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=90979

Patch Set 1 #

Total comments: 3

Patch Set 2 : Comment nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -36 lines) Patch
M tools/valgrind/chrome_tests.py View 2 chunks +4 lines, -0 lines 0 comments Download
M views/widget/native_widget_test_utils.h View 1 chunk +3 lines, -3 lines 0 comments Download
M views/widget/native_widget_test_utils_gtk.cc View 1 chunk +12 lines, -14 lines 0 comments Download
M views/widget/native_widget_test_utils_win.cc View 1 chunk +13 lines, -15 lines 0 comments Download
M views/widget/native_widget_unittest.cc View 1 2 chunks +10 lines, -4 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
dhollowa
ben -> views stuff thestig -> valgrind addition
9 years, 5 months ago (2011-06-28 23:50:10 UTC) #1
Lei Zhang
LGTM for tools/valgrind/chrome_tests.py changes.
9 years, 5 months ago (2011-06-29 01:00:30 UTC) #2
Timur Iskhodzhanov
http://codereview.chromium.org/7272044/diff/1/tools/valgrind/chrome_tests.py File tools/valgrind/chrome_tests.py (right): http://codereview.chromium.org/7272044/diff/1/tools/valgrind/chrome_tests.py#newcode276 tools/valgrind/chrome_tests.py:276: return self.SimpleTest("views", "views_unittests") a few questions: a) is it ...
9 years, 5 months ago (2011-06-29 09:24:01 UTC) #3
dhollowa
On 2011/06/29 09:24:01, Timur Iskhodzhanov wrote: > http://codereview.chromium.org/7272044/diff/1/tools/valgrind/chrome_tests.py > File tools/valgrind/chrome_tests.py (right): > > http://codereview.chromium.org/7272044/diff/1/tools/valgrind/chrome_tests.py#newcode276 ...
9 years, 5 months ago (2011-06-29 16:01:30 UTC) #4
Timur Iskhodzhanov
> > a) is it single-process? > Yes. The tests spin up multiple threads, but ...
9 years, 5 months ago (2011-06-29 16:07:13 UTC) #5
Timur Iskhodzhanov
> > These tests are for GYP_DEFINES="toolkit_views=1" builds, i.e. > > Windows and CrOS. I ...
9 years, 5 months ago (2011-06-29 16:07:56 UTC) #6
Ben Goodger (Google)
LGTM for the code changes. http://codereview.chromium.org/7272044/diff/1/views/widget/native_widget_unittest.cc File views/widget/native_widget_unittest.cc (right): http://codereview.chromium.org/7272044/diff/1/views/widget/native_widget_unittest.cc#newcode22 views/widget/native_widget_unittest.cc:22: // delegate. remove " ...
9 years, 5 months ago (2011-06-29 16:12:48 UTC) #7
dhollowa
http://codereview.chromium.org/7272044/diff/1/views/widget/native_widget_unittest.cc File views/widget/native_widget_unittest.cc (right): http://codereview.chromium.org/7272044/diff/1/views/widget/native_widget_unittest.cc#newcode22 views/widget/native_widget_unittest.cc:22: // delegate. On 2011/06/29 16:12:48, Ben Goodger (Google) wrote: ...
9 years, 5 months ago (2011-06-29 16:17:43 UTC) #8
dhollowa
9 years, 5 months ago (2011-06-29 16:30:36 UTC) #9
On 2011/06/29 16:07:56, Timur Iskhodzhanov wrote:
> > > These tests are for GYP_DEFINES="toolkit_views=1" builds, i.e.
> > > Windows and CrOS.  I don't know if we have Linux bots with this
> configuration.
> > Nope we don't have. Should we? It will change unit/ui tests as well, right?
> (note: we already have CrOS/Valgrind bots but without "toolkit_views=1"

According to build/common.gypi:50 toolkit_views=1 for Windows and CrOS builds. 
I don't think a Linux/toolkit_views=1 build would give us extra coverage.

I will ping you on enabling the CrOS Valgrind "views" once that is ready. 
Thanks!

Powered by Google App Engine
This is Rietveld 408576698