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

Issue 2385913002: Define canonical enum for "HeliumResult" status values. (Closed)

Created:
4 years, 2 months ago by Kevin M
Modified:
4 years, 2 months ago
Reviewers:
Garrett Casto, scf, Wez, CJ
CC:
chromium-reviews, cbentzel+watch_chromium.org, anandc+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, bgoldman+watch-blimp_chromium.org, steimel+watch-blimp_chromium.org, gcasto+watch-blimp_chromium.org, shaktisahu+watch-blimp_chromium.org, nyquist+watch-blimp_chromium.org, perumaal+watch-blimp_chromium.org, marcinjb+watch-blimp_chromium.org, jessicag+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, lethalantidote+watch-blimp_chromium.org, dtrainor+watch-blimp_chromium.org, scf+watch-blimp_chromium.org, khushalsagar+watch-blimp_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Define canonical enum for "HeliumResult" status values. Add HeliumResult-to-string mapping for easier logging. Add unit tests for string conversion functions. R=lethalantidote@chromium.org,gcasto@chromium.org BUG= Committed: https://crrev.com/1ce8eb06b7f7ffc4adae084273aea6c1e9d7aef5 Cr-Commit-Position: refs/heads/master@{#422683}

Patch Set 1 #

Total comments: 10

Patch Set 2 : feedbacks #

Patch Set 3 : the android compiler is dumb #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -1 line) Patch
M blimp/net/BUILD.gn View 3 chunks +5 lines, -1 line 0 comments Download
A blimp/net/helium/helium_errors.h View 1 1 chunk +14 lines, -0 lines 1 comment Download
A blimp/net/helium/helium_result.h View 1 1 chunk +30 lines, -0 lines 0 comments Download
A blimp/net/helium/helium_result.cc View 1 2 1 chunk +28 lines, -0 lines 1 comment Download
A blimp/net/helium/helium_result_unittest.cc View 1 1 chunk +31 lines, -0 lines 1 comment Download

Messages

Total messages: 28 (13 generated)
Kevin M
4 years, 2 months ago (2016-09-30 23:05:12 UTC) #1
Kevin M
+wez
4 years, 2 months ago (2016-10-03 17:50:44 UTC) #4
scf
lgtm https://codereview.chromium.org/2385913002/diff/1/blimp/net/helium/helium_errors.h File blimp/net/helium/helium_errors.h (right): https://codereview.chromium.org/2385913002/diff/1/blimp/net/helium/helium_errors.h#newcode15 blimp/net/helium/helium_errors.h:15: HELIUM_ERROR(CONNECTION_LOST, 2) move the comment into a string? ...
4 years, 2 months ago (2016-10-03 17:57:45 UTC) #7
scf
lgtm
4 years, 2 months ago (2016-10-03 17:57:46 UTC) #8
Garrett Casto
lgtm https://codereview.chromium.org/2385913002/diff/1/blimp/net/helium/helium_errors.h File blimp/net/helium/helium_errors.h (right): https://codereview.chromium.org/2385913002/diff/1/blimp/net/helium/helium_errors.h#newcode11 blimp/net/helium/helium_errors.h:11: HELIUM_ERROR(FAILED, 1) Nit: OK, FAILED, and CONNECTION_LOST were ...
4 years, 2 months ago (2016-10-03 18:40:47 UTC) #9
CJ
lgtm https://codereview.chromium.org/2385913002/diff/1/blimp/net/helium/helium_result.cc File blimp/net/helium/helium_result.cc (right): https://codereview.chromium.org/2385913002/diff/1/blimp/net/helium/helium_result.cc#newcode18 blimp/net/helium/helium_result.cc:18: #include "blimp/net/helium/helium_errors.h" Just for my own knowledge, why ...
4 years, 2 months ago (2016-10-03 20:47:34 UTC) #10
Kevin M
https://codereview.chromium.org/2385913002/diff/1/blimp/net/helium/helium_errors.h File blimp/net/helium/helium_errors.h (right): https://codereview.chromium.org/2385913002/diff/1/blimp/net/helium/helium_errors.h#newcode11 blimp/net/helium/helium_errors.h:11: HELIUM_ERROR(FAILED, 1) On 2016/10/03 18:40:47, Garrett Casto wrote: > ...
4 years, 2 months ago (2016-10-03 22:32:19 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2385913002/1
4 years, 2 months ago (2016-10-03 22:33:25 UTC) #13
CJ
https://codereview.chromium.org/2385913002/diff/1/blimp/net/helium/helium_result.cc File blimp/net/helium/helium_result.cc (right): https://codereview.chromium.org/2385913002/diff/1/blimp/net/helium/helium_result.cc#newcode18 blimp/net/helium/helium_result.cc:18: #include "blimp/net/helium/helium_errors.h" On 2016/10/03 22:32:19, Kevin M wrote: > ...
4 years, 2 months ago (2016-10-03 22:36:31 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2385913002/20001
4 years, 2 months ago (2016-10-03 22:43:35 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/139270)
4 years, 2 months ago (2016-10-03 23:04:31 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2385913002/40001
4 years, 2 months ago (2016-10-04 01:39:23 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-04 02:55:55 UTC) #25
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/1ce8eb06b7f7ffc4adae084273aea6c1e9d7aef5 Cr-Commit-Position: refs/heads/master@{#422683}
4 years, 2 months ago (2016-10-04 03:00:02 UTC) #27
Wez
4 years, 2 months ago (2016-10-08 00:44:53 UTC) #28
Message was sent while issue was closed.
https://codereview.chromium.org/2385913002/diff/40001/blimp/net/helium/helium...
File blimp/net/helium/helium_errors.h (right):

https://codereview.chromium.org/2385913002/diff/40001/blimp/net/helium/helium...
blimp/net/helium/helium_errors.h:10: HELIUM_ERROR(INTERNAL_ERROR, 1)
nit: Should this be UNKNOWN_ERROR? i.e. it indicates some condition that we
really never expected could possibly occur?

https://codereview.chromium.org/2385913002/diff/40001/blimp/net/helium/helium...
File blimp/net/helium/helium_result.cc (right):

https://codereview.chromium.org/2385913002/diff/40001/blimp/net/helium/helium...
blimp/net/helium/helium_result.cc:19: break;
This break looks mis-placed, or unnecessary?

https://codereview.chromium.org/2385913002/diff/40001/blimp/net/helium/helium...
File blimp/net/helium/helium_result_unittest.cc (right):

https://codereview.chromium.org/2385913002/diff/40001/blimp/net/helium/helium...
blimp/net/helium/helium_result_unittest.cc:16: ~HeliumResultTest() override {}
Do we need a test fixture base, given that it doesn't actually do anything, and
has no members?

Powered by Google App Engine
This is Rietveld 408576698