OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 <string> | 5 #include <string> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "chrome/common/extensions/extension.h" | 12 #include "extensions/common/extension.h" |
13 #include "extensions/common/extension_builder.h" | 13 #include "extensions/common/extension_builder.h" |
14 #include "extensions/common/install_warning.h" | 14 #include "extensions/common/install_warning.h" |
15 #include "extensions/common/manifest_handler.h" | 15 #include "extensions/common/manifest_handler.h" |
16 #include "extensions/common/value_builder.h" | 16 #include "extensions/common/value_builder.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
18 | 18 |
19 namespace extensions { | 19 namespace extensions { |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 EXPECT_TRUE( | 272 EXPECT_TRUE( |
273 ManifestHandler::ValidateExtension(extension.get(), &error, &warnings)); | 273 ManifestHandler::ValidateExtension(extension.get(), &error, &warnings)); |
274 | 274 |
275 // Validates "a" and fails. | 275 // Validates "a" and fails. |
276 (new TestManifestValidator(false, true, SingleKey("a")))->Register(); | 276 (new TestManifestValidator(false, true, SingleKey("a")))->Register(); |
277 EXPECT_FALSE( | 277 EXPECT_FALSE( |
278 ManifestHandler::ValidateExtension(extension.get(), &error, &warnings)); | 278 ManifestHandler::ValidateExtension(extension.get(), &error, &warnings)); |
279 } | 279 } |
280 | 280 |
281 } // namespace extensions | 281 } // namespace extensions |
OLD | NEW |