OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "extensions/common/manifest.h" | 5 #include "extensions/common/manifest.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "chrome/common/extensions/features/simple_feature.h" | |
15 #include "extensions/common/error_utils.h" | 14 #include "extensions/common/error_utils.h" |
16 #include "extensions/common/features/feature.h" | 15 #include "extensions/common/features/feature.h" |
| 16 #include "extensions/common/features/simple_feature.h" |
17 #include "extensions/common/install_warning.h" | 17 #include "extensions/common/install_warning.h" |
18 #include "extensions/common/manifest_constants.h" | 18 #include "extensions/common/manifest_constants.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
20 | 20 |
21 namespace extensions { | 21 namespace extensions { |
22 | 22 |
23 namespace errors = manifest_errors; | 23 namespace errors = manifest_errors; |
24 namespace keys = manifest_keys; | 24 namespace keys = manifest_keys; |
25 | 25 |
26 class ManifestTest : public testing::Test { | 26 class ManifestTest : public testing::Test { |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 EXPECT_FALSE(manifest->Get(keys::kPageAction, &output)); | 218 EXPECT_FALSE(manifest->Get(keys::kPageAction, &output)); |
219 MutateManifest( | 219 MutateManifest( |
220 &manifest, keys::kPlatformAppBackground, NULL); | 220 &manifest, keys::kPlatformAppBackground, NULL); |
221 | 221 |
222 // Platform apps also can't have a "Commands" key. | 222 // Platform apps also can't have a "Commands" key. |
223 EXPECT_FALSE(manifest->HasKey(keys::kCommands)); | 223 EXPECT_FALSE(manifest->HasKey(keys::kCommands)); |
224 EXPECT_FALSE(manifest->Get(keys::kCommands, &output)); | 224 EXPECT_FALSE(manifest->Get(keys::kCommands, &output)); |
225 }; | 225 }; |
226 | 226 |
227 } // namespace extensions | 227 } // namespace extensions |
OLD | NEW |