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

Issue 10698112: Fix failed apk unit test case MessagePumpLibeventTest.* on Android. (Closed)

Created:
8 years, 5 months ago by Shouqun Liu
Modified:
8 years, 5 months ago
CC:
chromium-reviews, erikwright (departed), sadrul, brettw-cc_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Fix failed apk unit test case MessagePumpLibeventTest.* on Android. The MessagePumpLibeventTest.StopWatcher and MessagePumpLibeventTest.DeleteWatcher use fd 0, which is not permitted in apk test while calling 'epoll_ctl', and cause failure on Android. Fix this by using fd created from pipe. Also remove them from Android disabled case list. BUG=None TEST=base_unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=146041

Patch Set 1 : refine the patch #

Total comments: 5

Patch Set 2 : Refined the patch with BaseWatcher #

Total comments: 4

Patch Set 3 : Refine the patch and remove the type from Watcher #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -27 lines) Patch
M base/message_pump_libevent_unittest.cc View 1 2 5 chunks +40 lines, -24 lines 0 comments Download
M build/android/gtest_filter/base_unittests_disabled View 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Shouqun Liu
This patch fixes failed apk unit test case MessagePumpLibeventTest.* on Android. Since fd 0 is ...
8 years, 5 months ago (2012-07-06 06:01:12 UTC) #1
nilesh
On 2012/07/06 06:01:12, Shouqun Liu wrote: > This patch fixes failed apk unit test case ...
8 years, 5 months ago (2012-07-09 17:35:59 UTC) #2
jar (doing other things)
http://codereview.chromium.org/10698112/diff/3001/base/message_pump_libevent_unittest.cc File base/message_pump_libevent_unittest.cc (right): http://codereview.chromium.org/10698112/diff/3001/base/message_pump_libevent_unittest.cc#newcode67 base/message_pump_libevent_unittest.cc:67: TEST_F(MessagePumpLibeventTest, TestWatchingFromBadThread) { Where is TestWatchingFromBadThread defined? http://codereview.chromium.org/10698112/diff/3001/base/message_pump_libevent_unittest.cc#newcode149 base/message_pump_libevent_unittest.cc:149: ...
8 years, 5 months ago (2012-07-09 21:12:23 UTC) #3
Shouqun Liu
Hi jar, I have updated the patch according to your suggestion, comments are below, thanks ...
8 years, 5 months ago (2012-07-10 05:42:41 UTC) #4
jar (doing other things)
Changes to test class are very good. I think making the fd there is much ...
8 years, 5 months ago (2012-07-10 17:02:10 UTC) #5
Shouqun Liu
On 2012/07/10 17:02:10, jar wrote: > Changes to test class are very good. I think ...
8 years, 5 months ago (2012-07-11 00:49:11 UTC) #6
Shouqun Liu
http://codereview.chromium.org/10698112/diff/12001/base/message_pump_libevent_unittest.cc File base/message_pump_libevent_unittest.cc (right): http://codereview.chromium.org/10698112/diff/12001/base/message_pump_libevent_unittest.cc#newcode96 base/message_pump_libevent_unittest.cc:96: explicit BaseWatcher( On 2012/07/10 17:02:10, jar wrote: > [if ...
8 years, 5 months ago (2012-07-11 00:49:37 UTC) #7
jar (doing other things)
lgtm
8 years, 5 months ago (2012-07-11 01:18:46 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shouqun.liu@intel.com/10698112/17001
8 years, 5 months ago (2012-07-11 01:29:20 UTC) #9
commit-bot: I haz the power
8 years, 5 months ago (2012-07-11 03:25:41 UTC) #10
Change committed as 146041

Powered by Google App Engine
This is Rietveld 408576698