| 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/helium/result.h" | |
| 6 | |
| 7 #include "base/macros.h" | |
| 8 #include "testing/gtest/include/gtest/gtest.h" | |
| 9 | |
| 10 namespace blimp { | |
| 11 namespace helium { | |
| 12 namespace { | |
| 13 | |
| 14 class ResultTest : public testing::Test { | |
| 15 public: | |
| 16 ResultTest() {} | |
| 17 ~ResultTest() override {} | |
| 18 }; | |
| 19 | |
| 20 TEST_F(ResultTest, ResultToStringWorks) { | |
| 21 // The exhaustive list of errors need not be specified here, but enough are | |
| 22 // specified that we can verify that the switch/case mapping works as | |
| 23 // intended. | |
| 24 EXPECT_STREQ("SUCCESS", ResultToString(Result::SUCCESS)); | |
| 25 EXPECT_STREQ("ERR_DISCONNECTED", ResultToString(Result::ERR_DISCONNECTED)); | |
| 26 } | |
| 27 | |
| 28 } // namespace | |
| 29 } // namespace helium | |
| 30 } // namespace blimp | |
| OLD | NEW |