blob: 0b060862ceac09a87fc856b7c76a96a9758660af [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
Alex Vakulenko7c36b672014-07-16 14:50:58 -07005#include "buffet/commands/command_definition.h"
6
Alex Deymof6cbe322014-11-10 19:55:35 -08007#include <gtest/gtest.h>
8
Alex Vakulenko7c36b672014-07-16 14:50:58 -07009TEST(CommandDefinition, Test) {
10 auto params = std::make_shared<buffet::ObjectSchema>();
Anton Muhin71fb9d52014-11-21 22:22:39 +040011 auto results = std::make_shared<buffet::ObjectSchema>();
12 buffet::CommandDefinition def("powerd", params, results);
Alex Vakulenko7c36b672014-07-16 14:50:58 -070013 EXPECT_EQ("powerd", def.GetCategory());
14 EXPECT_EQ(params, def.GetParameters());
Anton Muhin71fb9d52014-11-21 22:22:39 +040015 EXPECT_EQ(results, def.GetResults());
Alex Vakulenko7c36b672014-07-16 14:50:58 -070016}