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

Issue 21534003: avoid char+'\xHH' as it's too easy to use values > 127 (Closed)

Created:
7 years, 4 months ago by Mostyn Bramley-Moore
Modified:
7 years, 4 months ago
Reviewers:
szym, Noam Samuel
CC:
chromium-reviews, cbentzel+watch_chromium.org, mmenke
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

avoid char+'\xHH' as it's too easy to use values > 127 TEST=net_unittests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=215124

Patch Set 1 #

Total comments: 4

Patch Set 2 : add/use a couple of helper functions #

Patch Set 3 : corresponding change in chrome unit tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+456 lines, -446 lines) Patch
M chrome/utility/local_discovery/local_domain_resolver_unittest.cc View 1 2 1 chunk +38 lines, -38 lines 0 comments Download
M chrome/utility/local_discovery/service_discovery_client_unittest.cc View 1 2 1 chunk +97 lines, -97 lines 0 comments Download
M net/dns/mdns_client_unittest.cc View 1 6 chunks +250 lines, -246 lines 0 comments Download
M net/dns/mock_mdns_socket_factory.h View 1 chunk +1 line, -1 line 0 comments Download
M net/dns/mock_mdns_socket_factory.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/dns/record_parsed_unittest.cc View 1 chunk +15 lines, -15 lines 0 comments Download
M net/dns/record_rdata_unittest.cc View 1 8 chunks +54 lines, -48 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Mostyn Bramley-Moore
@szym: followup from 21229002...
7 years, 4 months ago (2013-08-01 12:31:48 UTC) #1
szym
Thanks for doing this! LGTM with two suggestions. https://codereview.chromium.org/21534003/diff/1/net/dns/mdns_client_unittest.cc File net/dns/mdns_client_unittest.cc (right): https://codereview.chromium.org/21534003/diff/1/net/dns/mdns_client_unittest.cc#newcode433 net/dns/mdns_client_unittest.cc:433: std::string(reinterpret_cast<const ...
7 years, 4 months ago (2013-08-01 14:28:27 UTC) #2
Mostyn Bramley-Moore
https://codereview.chromium.org/21534003/diff/1/net/dns/mdns_client_unittest.cc File net/dns/mdns_client_unittest.cc (right): https://codereview.chromium.org/21534003/diff/1/net/dns/mdns_client_unittest.cc#newcode433 net/dns/mdns_client_unittest.cc:433: std::string(reinterpret_cast<const char*>(packet), size))) On 2013/08/01 14:28:27, szym wrote: > ...
7 years, 4 months ago (2013-08-01 14:56:23 UTC) #3
szym
lgtm
7 years, 4 months ago (2013-08-01 15:43:19 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mostynb@opera.com/21534003/7001
7 years, 4 months ago (2013-08-01 15:43:36 UTC) #5
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 4 months ago (2013-08-01 16:15:00 UTC) #6
szym
You'll also need to fix the two unittest files in https://code.google.com/p/chromium/codesearch#chromium/src/chrome/utility/local_discovery/&sq=package:chromium&type=cs On Thu, Aug 1, ...
7 years, 4 months ago (2013-08-01 16:18:43 UTC) #7
Mostyn Bramley-Moore
On 2013/08/01 16:18:43, szym wrote: > You'll also need to fix the two unittest files ...
7 years, 4 months ago (2013-08-01 16:30:10 UTC) #8
szym
lgtm noamsml: PTAL
7 years, 4 months ago (2013-08-01 16:31:12 UTC) #9
Noam Samuel
On 2013/08/01 16:31:12, szym wrote: > lgtm > noamsml: PTAL lgtm
7 years, 4 months ago (2013-08-01 16:49:40 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mostynb@opera.com/21534003/34001
7 years, 4 months ago (2013-08-01 16:57:46 UTC) #11
commit-bot: I haz the power
7 years, 4 months ago (2013-08-01 21:52:25 UTC) #12
Message was sent while issue was closed.
Change committed as 215124

Powered by Google App Engine
This is Rietveld 408576698