| 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 <stddef.h> |
| 6 |
| 5 #include <string> | 7 #include <string> |
| 6 #include <vector> | 8 #include <vector> |
| 7 | 9 |
| 8 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 9 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/stl_util.h" | 12 #include "base/stl_util.h" |
| 11 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 12 #include "extensions/common/extension.h" | 14 #include "extensions/common/extension.h" |
| 13 #include "extensions/common/extension_builder.h" | 15 #include "extensions/common/extension_builder.h" |
| 14 #include "extensions/common/install_warning.h" | 16 #include "extensions/common/install_warning.h" |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 EXPECT_TRUE( | 269 EXPECT_TRUE( |
| 268 ManifestHandler::ValidateExtension(extension.get(), &error, &warnings)); | 270 ManifestHandler::ValidateExtension(extension.get(), &error, &warnings)); |
| 269 | 271 |
| 270 // Validates "a" and fails. | 272 // Validates "a" and fails. |
| 271 (new TestManifestValidator(false, true, SingleKey("a")))->Register(); | 273 (new TestManifestValidator(false, true, SingleKey("a")))->Register(); |
| 272 EXPECT_FALSE( | 274 EXPECT_FALSE( |
| 273 ManifestHandler::ValidateExtension(extension.get(), &error, &warnings)); | 275 ManifestHandler::ValidateExtension(extension.get(), &error, &warnings)); |
| 274 } | 276 } |
| 275 | 277 |
| 276 } // namespace extensions | 278 } // namespace extensions |
| OLD | NEW |