Screen Orientation Controller allow rotation for some orientations
[chromium-blink-merge.git] / tools / json_schema_compiler / test / features_unittest.cc
blobc4f1f128b6bb24b9739386b07e5f30736702207b
1 // Copyright 2013 The Chromium 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.
5 #include <string>
7 #include "testing/gtest/include/gtest/gtest.h"
8 #include "tools/json_schema_compiler/test/test_features.h"
10 using test::features::TestFeatures;
12 TEST(FeaturesGeneratorTest, FromString) {
13 TestFeatures test_features;
14 EXPECT_EQ(TestFeatures::kSimple, test_features.FromString("simple"));
15 EXPECT_EQ(TestFeatures::kComplex, test_features.FromString("complex"));
18 TEST(FeaturesGeneratorTest, ToString) {
19 TestFeatures test_features;
20 EXPECT_STREQ("simple", test_features.ToString(TestFeatures::kSimple));
21 EXPECT_STREQ("complex", test_features.ToString(TestFeatures::kComplex));