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

Side by Side Diff: blimp/net/helium/helium_result_unittest.cc

Issue 2385913002: Define canonical enum for "HeliumResult" status values. (Closed)
Patch Set: the android compiler is dumb Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "blimp/net/helium/helium_result.h"
6
7 #include "base/macros.h"
8 #include "testing/gtest/include/gtest/gtest.h"
9
10 namespace blimp {
11 namespace {
12
13 class HeliumResultTest : public testing::Test {
14 public:
15 HeliumResultTest() {}
16 ~HeliumResultTest() override {}
Wez 2016/10/08 00:44:53 Do we need a test fixture base, given that it does
17 };
18
19 TEST_F(HeliumResultTest, HeliumResultToString) {
20 // The exhaustive list of errors need not be specified here, but enough are
21 // specified that we can verify that the switch/case mapping works as
22 // intended.
23 EXPECT_STREQ("SUCCESS", HeliumResultToString(HeliumResult::SUCCESS));
24 EXPECT_STREQ("ERR_INTERNAL_ERROR",
25 HeliumResultToString(HeliumResult::ERR_INTERNAL_ERROR));
26 EXPECT_STREQ("ERR_DISCONNECTED",
27 HeliumResultToString(HeliumResult::ERR_DISCONNECTED));
28 }
29
30 } // namespace
31 } // namespace blimp
OLDNEW
« blimp/net/helium/helium_result.cc ('K') | « blimp/net/helium/helium_result.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698