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

Issue 130783003: Fix incorrect assumption in IDMap and SmallMap tests. (Closed)

Created:
6 years, 11 months ago by earthdok
Modified:
6 years, 11 months ago
Reviewers:
brettw, Nico
CC:
chromium-reviews, erikwright+watch_chromium.org
Visibility:
Public.

Description

Fix incorrect assumption in IDMap and SmallMap tests. Some of the tests assumed that base::hash_map is ordered, which it is not. They worked under libstdc++, but broke in libc++ builds. BUG=327334 R=thakis@chromium.org, brettw@chromium.org TEST=base_unittests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=246644

Patch Set 1 #

Total comments: 2

Patch Set 2 : add comment #

Patch Set 3 : use == for comparison #

Patch Set 4 : remove obsolete comment #

Patch Set 5 : remove unused array #

Patch Set 6 : #

Patch Set 7 : do not use == (causes compile errors) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -34 lines) Patch
M base/containers/small_map_unittest.cc View 3 4 5 6 1 chunk +8 lines, -17 lines 0 comments Download
M base/id_map_unittest.cc View 1 2 3 4 5 2 chunks +37 lines, -17 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
earthdok
Please take a look.
6 years, 11 months ago (2014-01-16 15:58:31 UTC) #1
earthdok
On 2014/01/16 15:58:31, earthdok wrote: > Please take a look. ping?
6 years, 11 months ago (2014-01-22 18:02:45 UTC) #2
earthdok
Adding another reviewer after a week. Please take a look.
6 years, 11 months ago (2014-01-23 12:24:40 UTC) #3
Nico
lgtm, but try the == thing first please. https://codereview.chromium.org/130783003/diff/1/base/containers/small_map_unittest.cc File base/containers/small_map_unittest.cc (left): https://codereview.chromium.org/130783003/diff/1/base/containers/small_map_unittest.cc#oldcode159 base/containers/small_map_unittest.cc:159: for ...
6 years, 11 months ago (2014-01-23 16:05:57 UTC) #4
earthdok
On 2014/01/23 16:05:57, Nico wrote: > lgtm, but try the == thing first please. > ...
6 years, 11 months ago (2014-01-23 17:10:00 UTC) #5
Nico
Ok, thanks for checking. On Thu, Jan 23, 2014 at 9:10 AM, <earthdok@chromium.org> wrote: > ...
6 years, 11 months ago (2014-01-23 17:10:50 UTC) #6
earthdok
6 years, 11 months ago (2014-01-23 18:17:49 UTC) #7
Message was sent while issue was closed.
Committed patchset #7 manually as r246644 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698