| Index: tools/json_schema_compiler/test/functions_on_types_unittest.cc
|
| diff --git a/tools/json_schema_compiler/test/functions_on_types_unittest.cc b/tools/json_schema_compiler/test/functions_on_types_unittest.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c2feb6f6422327d90917afe74dec22e7baef745b
|
| --- /dev/null
|
| +++ b/tools/json_schema_compiler/test/functions_on_types_unittest.cc
|
| @@ -0,0 +1,21 @@
|
| +// Copyright (c) 2012 The Chromium 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 "tools/json_schema_compiler/test/functionsOnTypes.h"
|
| +
|
| +#include "testing/gtest/include/gtest/gtest.h"
|
| +
|
| +using namespace test::api::functions_on_types;
|
| +
|
| +TEST(JsonSchemaCompilerFunctionsOnTypesTest, ChromeSettingGetParamsCreate) {
|
| + scoped_ptr<DictionaryValue> details_value(new DictionaryValue());
|
| + details_value->SetBoolean("incognito", true);
|
| + scoped_ptr<ListValue> params_value(new ListValue());
|
| + params_value->Append(details_value.release());
|
| + scoped_ptr<ChromeSetting::Get::Params> params(
|
| + ChromeSetting::Get::Params::Create(*params_value));
|
| + EXPECT_TRUE(params.get());
|
| + EXPECT_TRUE(*params->details.incognito);
|
| +}
|
| +
|
|
|