Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Side by Side Diff: trunk/src/tools/json_schema_compiler/test/features_unittest.cc

Issue 25940002: Revert 226826 "This is a preliminary patch to auto-generate the ..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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.
4
5 #include <string>
6
7 #include "testing/gtest/include/gtest/gtest.h"
8 #include "tools/json_schema_compiler/test/test_features.h"
9
10 using test::features::TestFeatures;
11
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"));
16 }
17
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));
22 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698