Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 | |
| OLD | NEW |