Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 29539858: Issue 5506 - Make the notification test work. (Closed)

Created:
Sept. 9, 2017, 3:43 a.m. by hub
Modified:
Sept. 12, 2017, 5:13 p.m.
Reviewers:
sergei
Base URL:
https://hg.adblockplus.org/libadblockplus/
Visibility:
Public.

Description

Issue 5506 - Make the notification test work.

Patch Set 1 #

Total comments: 1

Patch Set 2 : This version work using a fake "ManualTimer" #

Total comments: 16

Patch Set 3 : Address review comments. #

Total comments: 4

Patch Set 4 : Updated with the feedback #

Patch Set 5 : Removed dead code from previous patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -4 lines) Patch
M test/Notification.cpp View 1 2 3 2 chunks +13 lines, -4 lines 0 comments Download

Messages

Total messages: 12
hub
Sept. 9, 2017, 3:43 a.m. (2017-09-09 03:43:10 UTC) #1
hub
not ready for review yet, the test segfault.
Sept. 9, 2017, 3:43 a.m. (2017-09-09 03:43:58 UTC) #2
hub
segfault occurs because JsEngine::ScheduleTimer() is being called as Platform::~Platform() is in progress in the other ...
Sept. 11, 2017, 9:16 p.m. (2017-09-11 21:16:31 UTC) #3
sergei
https://codereview.adblockplus.org/29539858/diff/29539859/test/Notification.cpp File test/Notification.cpp (right): https://codereview.adblockplus.org/29539858/diff/29539859/test/Notification.cpp#newcode107 test/Notification.cpp:107: platformParams.timer.reset(new AdblockPlus::DefaultTimer()); I would recommend to not use threads ...
Sept. 11, 2017, 9:22 p.m. (2017-09-11 21:22:39 UTC) #4
hub
ideally the cleanup phase should be safe, and it isn't. But I'll try to solve ...
Sept. 11, 2017, 9:42 p.m. (2017-09-11 21:42:23 UTC) #5
hub
current patch work, and it uses a proper synchronization to check the callback was called.
Sept. 11, 2017, 10:01 p.m. (2017-09-11 22:01:56 UTC) #6
sergei
On 2017/09/11 21:16:31, hub wrote: > segfault occurs because JsEngine::ScheduleTimer() is being called as > ...
Sept. 12, 2017, 9:22 a.m. (2017-09-12 09:22:48 UTC) #7
hub
On 2017/09/12 09:22:48, sergei wrote: > On 2017/09/11 21:16:31, hub wrote: > > segfault occurs ...
Sept. 12, 2017, 11:28 a.m. (2017-09-12 11:28:15 UTC) #8
hub
reworked following review. https://codereview.adblockplus.org/29539858/diff/29541886/test/Notification.cpp File test/Notification.cpp (right): https://codereview.adblockplus.org/29539858/diff/29541886/test/Notification.cpp#newcode21 test/Notification.cpp:21: #include "../src/DefaultTimer.h" On 2017/09/12 09:22:48, sergei ...
Sept. 12, 2017, 12:59 p.m. (2017-09-12 12:59:09 UTC) #9
sergei
https://codereview.adblockplus.org/29539858/diff/29541886/test/Notification.cpp File test/Notification.cpp (right): https://codereview.adblockplus.org/29539858/diff/29541886/test/Notification.cpp#newcode91 test/Notification.cpp:91: AdblockPlus::Sync sync; On 2017/09/12 12:59:09, hub wrote: > On ...
Sept. 12, 2017, 1:34 p.m. (2017-09-12 13:34:09 UTC) #10
hub
Updated patch. https://codereview.adblockplus.org/29539858/diff/29541886/test/Notification.cpp File test/Notification.cpp (right): https://codereview.adblockplus.org/29539858/diff/29541886/test/Notification.cpp#newcode91 test/Notification.cpp:91: AdblockPlus::Sync sync; On 2017/09/12 13:34:09, sergei wrote: ...
Sept. 12, 2017, 3:51 p.m. (2017-09-12 15:51:10 UTC) #11
sergei
Sept. 12, 2017, 5:04 p.m. (2017-09-12 17:04:16 UTC) #12
LGTM

Powered by Google App Engine
This is Rietveld