blob: 76212af221debf43a24662c50b3880f069ef8cc0 [file] [log] [blame]
Alex Vakulenko7c36b672014-07-16 14:50:58 -07001// 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
9TEST(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}