OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/sync/syncable/model_type.h" | 5 #include "chrome/browser/sync/syncable/model_type.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
11 #include "chrome/test/values_test_util.h" | 11 #include "chrome/test/base/values_test_util.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 | 13 |
14 namespace syncable { | 14 namespace syncable { |
15 namespace { | 15 namespace { |
16 | 16 |
17 class ModelTypeTest : public testing::Test {}; | 17 class ModelTypeTest : public testing::Test {}; |
18 | 18 |
19 TEST_F(ModelTypeTest, ModelTypeToValue) { | 19 TEST_F(ModelTypeTest, ModelTypeToValue) { |
20 for (int i = syncable::FIRST_REAL_MODEL_TYPE; | 20 for (int i = syncable::FIRST_REAL_MODEL_TYPE; |
21 i < syncable::MODEL_TYPE_COUNT; ++i) { | 21 i < syncable::MODEL_TYPE_COUNT; ++i) { |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 EXPECT_FALSE(IsRealDataType(UNSPECIFIED)); | 82 EXPECT_FALSE(IsRealDataType(UNSPECIFIED)); |
83 EXPECT_FALSE(IsRealDataType(MODEL_TYPE_COUNT)); | 83 EXPECT_FALSE(IsRealDataType(MODEL_TYPE_COUNT)); |
84 EXPECT_FALSE(IsRealDataType(TOP_LEVEL_FOLDER)); | 84 EXPECT_FALSE(IsRealDataType(TOP_LEVEL_FOLDER)); |
85 EXPECT_TRUE(IsRealDataType(FIRST_REAL_MODEL_TYPE)); | 85 EXPECT_TRUE(IsRealDataType(FIRST_REAL_MODEL_TYPE)); |
86 EXPECT_TRUE(IsRealDataType(BOOKMARKS)); | 86 EXPECT_TRUE(IsRealDataType(BOOKMARKS)); |
87 EXPECT_TRUE(IsRealDataType(APPS)); | 87 EXPECT_TRUE(IsRealDataType(APPS)); |
88 } | 88 } |
89 | 89 |
90 } // namespace | 90 } // namespace |
91 } // namespace syncable | 91 } // namespace syncable |
OLD | NEW |