blob: 43b528b697190e909d666ed3ec357fe5a3738ffb [file] [log] [blame]
// Copyright 2015 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <weave/test/mock_command.h>
#include <memory>
#include <string>
#include <base/values.h>
#include "src/commands/unittest_utils.h"
namespace weave {
namespace test {
std::unique_ptr<base::DictionaryValue> MockCommand::GetParameters() const {
return CreateDictionaryValue(MockGetParameters());
}
std::unique_ptr<base::DictionaryValue> MockCommand::GetProgress() const {
return CreateDictionaryValue(MockGetProgress());
}
std::unique_ptr<base::DictionaryValue> MockCommand::GetResults() const {
return CreateDictionaryValue(MockGetResults());
}
std::unique_ptr<base::DictionaryValue> MockCommand::ToJson() const {
return CreateDictionaryValue(MockToJson());
}
} // namespace test
} // namespace weave