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

Issue 3017023: app: Add unittests for TreeNodeModel. (Closed)

Created:
10 years, 5 months ago by tfarina
Modified:
9 years, 7 months ago
Reviewers:
sky, Paweł Hajdan Jr.
CC:
chromium-reviews, Paweł Hajdan Jr., agl
Base URL:
git://git.chromium.org/chromium.git
Visibility:
Public.

Description

app: Add unittests for TreeNodeModel. BUG=None TEST=out/Debug/app_unittests --gtest_filter=TreeNodeModelTest.* Signed-off-by: Thiago Farina <tfarina@chromium.org>; Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=55179

Patch Set 1 : #

Total comments: 2

Patch Set 2 : review #

Total comments: 12

Patch Set 3 : scott's review #

Patch Set 4 : #

Total comments: 14

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Total comments: 2

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+279 lines, -1 line) Patch
M app/app.gyp View 2 chunks +2 lines, -1 line 0 comments Download
A app/tree_node_model_unittest.cc View 1 2 3 4 5 6 7 1 chunk +277 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
tfarina
Hi Pawel, could you review this to me?
10 years, 5 months ago (2010-07-23 03:16:46 UTC) #1
Paweł Hajdan Jr.
+sky. Scott, could you take a look? I'm not really familiar with the code being ...
10 years, 5 months ago (2010-07-23 18:28:13 UTC) #2
sky
http://codereview.chromium.org/3017023/diff/4001/5002 File app/tree_node_model_unittest.cc (right): http://codereview.chromium.org/3017023/diff/4001/5002#newcode8 app/tree_node_model_unittest.cc:8: TEST(TreeNodeModelTest, AddNode) { Couple of comments: . Please add ...
10 years, 5 months ago (2010-07-23 19:10:14 UTC) #3
tfarina
On 2010/07/23 19:10:14, sky wrote: > http://codereview.chromium.org/3017023/diff/4001/5002 > File app/tree_node_model_unittest.cc (right): > > http://codereview.chromium.org/3017023/diff/4001/5002#newcode8 > ...
10 years, 5 months ago (2010-07-25 00:44:33 UTC) #4
tfarina
10 years, 4 months ago (2010-07-28 20:45:32 UTC) #5
tfarina
git blame you Adam. Could you take a look at this please?
10 years, 4 months ago (2010-08-01 01:09:30 UTC) #6
agl
This code is nothing to do with me, no matter what git blame may say. ...
10 years, 4 months ago (2010-08-02 14:40:54 UTC) #7
sky
Sorry for the delay, was on vacation last week. http://codereview.chromium.org/3017023/diff/13003/15002 File app/tree_node_model_unittest.cc (right): http://codereview.chromium.org/3017023/diff/13003/15002#newcode9 app/tree_node_model_unittest.cc:9: ...
10 years, 4 months ago (2010-08-02 17:57:50 UTC) #8
sky
On Sat, Jul 24, 2010 at 5:44 PM, <tfarina@chromium.org> wrote: > On 2010/07/23 19:10:14, sky ...
10 years, 4 months ago (2010-08-02 17:58:19 UTC) #9
tfarina
On Mon, Aug 2, 2010 at 2:58 PM, Scott Violet <sky@chromium.org> wrote: > On Sat, ...
10 years, 4 months ago (2010-08-03 01:59:34 UTC) #10
tfarina
http://codereview.chromium.org/3017023/diff/13003/15002 File app/tree_node_model_unittest.cc (right): http://codereview.chromium.org/3017023/diff/13003/15002#newcode9 app/tree_node_model_unittest.cc:9: public: On 2010/08/02 17:57:50, sky wrote: > Add a ...
10 years, 4 months ago (2010-08-03 02:29:05 UTC) #11
sky
Ya, don't delete the model just the nodes you're removing. -Scott On Mon, Aug 2, ...
10 years, 4 months ago (2010-08-03 02:48:51 UTC) #12
tfarina
On Mon, Aug 2, 2010 at 11:48 PM, Scott Violet <sky@chromium.org> wrote: > Ya, don't ...
10 years, 4 months ago (2010-08-03 02:55:20 UTC) #13
sky
On Mon, Aug 2, 2010 at 7:55 PM, Thiago Farina <tfarina@chromium.org> wrote: > On Mon, ...
10 years, 4 months ago (2010-08-03 15:08:06 UTC) #14
tfarina
On 2010/08/03 15:08:06, sky wrote: > On Mon, Aug 2, 2010 at 7:55 PM, Thiago ...
10 years, 4 months ago (2010-08-04 00:56:15 UTC) #15
sky
http://codereview.chromium.org/3017023/diff/17002/25003 File app/tree_node_model_unittest.cc (right): http://codereview.chromium.org/3017023/diff/17002/25003#newcode66 app/tree_node_model_unittest.cc:66: TreeNodeModel<TreeNodeWithValue<int> >* model = model leaks in this test. ...
10 years, 4 months ago (2010-08-04 18:33:45 UTC) #16
tfarina
Fixed all memory leaks in patchset 7. Scott, could you take another look? Thanks. http://codereview.chromium.org/3017023/diff/17002/25003 ...
10 years, 4 months ago (2010-08-05 11:04:45 UTC) #17
sky
Before I take another look. Can you run your test through valgrind to make sure ...
10 years, 4 months ago (2010-08-05 15:41:48 UTC) #18
tfarina
On 2010/08/05 15:41:48, sky wrote: > Before I take another look. Can you run your ...
10 years, 4 months ago (2010-08-05 16:00:36 UTC) #19
sky
LGTM http://codereview.chromium.org/3017023/diff/33001/34002 File app/tree_node_model_unittest.cc (right): http://codereview.chromium.org/3017023/diff/33001/34002#newcode164 app/tree_node_model_unittest.cc:164: delete child1; move this before the assert so ...
10 years, 4 months ago (2010-08-05 22:55:01 UTC) #20
sky
On Thu, Aug 5, 2010 at 9:00 AM, <tfarina@chromium.org> wrote: > On 2010/08/05 15:41:48, sky ...
10 years, 4 months ago (2010-08-05 22:55:57 UTC) #21
tfarina
10 years, 4 months ago (2010-08-05 23:38:22 UTC) #22
http://codereview.chromium.org/3017023/diff/33001/34002
File app/tree_node_model_unittest.cc (right):

http://codereview.chromium.org/3017023/diff/33001/34002#newcode164
app/tree_node_model_unittest.cc:164: delete child1;
On 2010/08/05 22:55:01, sky wrote:
> move this before the assert so that if the test end sup failing for some
reason
> you still clean up memory.

Done.

Powered by Google App Engine
This is Rietveld 408576698