Alex Vakulenko | 7c36b67 | 2014-07-16 14:50:58 -0700 | [diff] [blame] | 1 | // Copyright 2014 The Chromium OS 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 <gtest/gtest.h> |
| 6 | |
| 7 | #include "buffet/commands/command_definition.h" |
| 8 | |
| 9 | TEST(CommandDefinition, Test) { |
| 10 | auto params = std::make_shared<buffet::ObjectSchema>(); |
| 11 | buffet::CommandDefinition def("powerd", params); |
| 12 | EXPECT_EQ("powerd", def.GetCategory()); |
| 13 | EXPECT_EQ(params, def.GetParameters()); |
| 14 | } |