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

Issue 1199343004: Add ListContainer::swap (Closed)

Created:
5 years, 6 months ago by pdr.
Modified:
5 years, 6 months ago
Reviewers:
danakj, chrishtr
CC:
cc-bugs_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add ListContainer::swap This patch implements a simple swap function on ListContainer. Users can use this function to swap a list container with... wait for it... another list container! BUG=484943 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/d012546071380244dcadedbd4dc1eccaab004d00 Cr-Commit-Position: refs/heads/master@{#335977}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Remove extra expect_eq #

Patch Set 3 : Refactor test for clarity #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -2 lines) Patch
M cc/base/list_container.h View 1 chunk +5 lines, -0 lines 0 comments Download
M cc/base/list_container_unittest.cc View 1 2 3 chunks +44 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
pdr.
5 years, 6 months ago (2015-06-24 17:48:07 UTC) #2
danakj
> TEST=ListContainerTest.Swap TEST= lines are for QA people. You don't need to use that line ...
5 years, 6 months ago (2015-06-24 17:50:26 UTC) #3
chrishtr
https://codereview.chromium.org/1199343004/diff/1/cc/base/list_container_unittest.cc File cc/base/list_container_unittest.cc (right): https://codereview.chromium.org/1199343004/diff/1/cc/base/list_container_unittest.cc#newcode966 cc/base/list_container_unittest.cc:966: list_1.front()->get_value()); Why not check back() also?
5 years, 6 months ago (2015-06-24 17:52:53 UTC) #4
danakj
LGTM https://codereview.chromium.org/1199343004/diff/1/cc/base/list_container_unittest.cc File cc/base/list_container_unittest.cc (right): https://codereview.chromium.org/1199343004/diff/1/cc/base/list_container_unittest.cc#newcode884 cc/base/list_container_unittest.cc:884: EXPECT_EQ(2u, list_1.size()); // One direct allocation, one AppendByMoving. ...
5 years, 6 months ago (2015-06-24 17:53:11 UTC) #5
pdr.
On 2015/06/24 at 17:53:11, danakj wrote: > LGTM > > https://codereview.chromium.org/1199343004/diff/1/cc/base/list_container_unittest.cc > File cc/base/list_container_unittest.cc (right): ...
5 years, 6 months ago (2015-06-24 17:57:01 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1199343004/20001
5 years, 6 months ago (2015-06-24 17:58:22 UTC) #9
pdr.
A Blink reviewer had trouble understanding the blink version of this patch so I've updated ...
5 years, 6 months ago (2015-06-24 18:25:44 UTC) #11
danakj
Yup I like it LGTM
5 years, 6 months ago (2015-06-24 18:26:48 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1199343004/40001
5 years, 6 months ago (2015-06-24 18:29:22 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 6 months ago (2015-06-24 19:40:22 UTC) #15
commit-bot: I haz the power
5 years, 6 months ago (2015-06-24 19:41:21 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/d012546071380244dcadedbd4dc1eccaab004d00
Cr-Commit-Position: refs/heads/master@{#335977}

Powered by Google App Engine
This is Rietveld 408576698