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

Issue 32303002: ScopedNativeLibrary.Basic test fix (Closed)

Created:
7 years, 2 months ago by Tomasz Moniuszko
Modified:
7 years, 1 month ago
CC:
chromium-reviews, erikwright+watch_chromium.org, Hironori Bono
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

ScopedNativeLibrary.Basic test fix IsBadCodePtr() function was returning zero value randomly and the test was raising false alarms sometimes. This fix changes the test to use GetFunctionPointerFromNativeLibrary() instead. BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=232192

Patch Set 1 #

Total comments: 4

Patch Set 2 : const char* kFunctionName changed to const char kFunctionName[] #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -6 lines) Patch
M base/scoped_native_library_unittest.cc View 1 1 chunk +12 lines, -6 lines 2 comments Download

Messages

Total messages: 12 (0 generated)
Tomasz Moniuszko
7 years, 2 months ago (2013-10-21 12:14:14 UTC) #1
Mark Mentovai
https://codereview.chromium.org/32303002/diff/1/base/scoped_native_library_unittest.cc File base/scoped_native_library_unittest.cc (right): https://codereview.chromium.org/32303002/diff/1/base/scoped_native_library_unittest.cc#newcode25 base/scoped_native_library_unittest.cc:25: const char* kFunctionName = "DirectDrawCreate"; Use const char kFunctionName[] ...
7 years, 1 month ago (2013-10-25 20:13:26 UTC) #2
Tomasz Moniuszko
https://codereview.chromium.org/32303002/diff/1/base/scoped_native_library_unittest.cc File base/scoped_native_library_unittest.cc (right): https://codereview.chromium.org/32303002/diff/1/base/scoped_native_library_unittest.cc#newcode39 base/scoped_native_library_unittest.cc:39: GetFunctionPointerFromNativeLibrary(native_library, kFunctionName)); On 2013/10/25 20:13:26, Mark Mentovai wrote: > ...
7 years, 1 month ago (2013-10-28 10:24:21 UTC) #3
Tomasz Moniuszko
https://codereview.chromium.org/32303002/diff/1/base/scoped_native_library_unittest.cc File base/scoped_native_library_unittest.cc (right): https://codereview.chromium.org/32303002/diff/1/base/scoped_native_library_unittest.cc#newcode25 base/scoped_native_library_unittest.cc:25: const char* kFunctionName = "DirectDrawCreate"; On 2013/10/25 20:13:26, Mark ...
7 years, 1 month ago (2013-10-28 10:34:56 UTC) #4
Mark Mentovai
I’m not convinced that it’s safe to use a closed handle this way (the analogous ...
7 years, 1 month ago (2013-10-29 22:17:17 UTC) #5
sky
Carlos knows this better than I. -sky +cpu
7 years, 1 month ago (2013-10-29 23:10:08 UTC) #6
cpu_(ooo_6.6-7.5)
https://codereview.chromium.org/32303002/diff/70001/base/scoped_native_library_unittest.cc File base/scoped_native_library_unittest.cc (right): https://codereview.chromium.org/32303002/diff/70001/base/scoped_native_library_unittest.cc#newcode27 base/scoped_native_library_unittest.cc:27: { the code here is different, the scope blocks ...
7 years, 1 month ago (2013-10-30 20:08:44 UTC) #7
Tomasz Moniuszko
https://codereview.chromium.org/32303002/diff/70001/base/scoped_native_library_unittest.cc File base/scoped_native_library_unittest.cc (right): https://codereview.chromium.org/32303002/diff/70001/base/scoped_native_library_unittest.cc#newcode27 base/scoped_native_library_unittest.cc:27: { On 2013/10/30 20:08:45, cpu wrote: > the code ...
7 years, 1 month ago (2013-10-31 09:13:37 UTC) #8
cpu_(ooo_6.6-7.5)
I see it now. lgtm
7 years, 1 month ago (2013-10-31 16:31:28 UTC) #9
Mark Mentovai
base OWNERS LGTM based on Carlos’ LGTM.
7 years, 1 month ago (2013-10-31 16:32:00 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tmoniuszko@opera.com/32303002/70001
7 years, 1 month ago (2013-10-31 16:33:05 UTC) #11
commit-bot: I haz the power
7 years, 1 month ago (2013-10-31 20:28:54 UTC) #12
Message was sent while issue was closed.
Change committed as 232192

Powered by Google App Engine
This is Rietveld 408576698