OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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 "base/macros.h" |
5 #include "base/version.h" | 6 #include "base/version.h" |
6 #include "extensions/common/extension.h" | 7 #include "extensions/common/extension.h" |
7 #include "extensions/common/manifest_handlers/shared_module_info.h" | 8 #include "extensions/common/manifest_handlers/shared_module_info.h" |
8 #include "extensions/common/manifest_test.h" | 9 #include "extensions/common/manifest_test.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
10 | 11 |
11 namespace { | 12 namespace { |
12 | 13 |
13 const char* kValidImportPath = | 14 const char* kValidImportPath = |
14 "_modules/abcdefghijklmnopabcdefghijklmnop/foo/bar.html"; | 15 "_modules/abcdefghijklmnopabcdefghijklmnop/foo/bar.html"; |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 "Invalid value for 'import'."), | 115 "Invalid value for 'import'."), |
115 Testcase("shared_module_import_invalid_id.json", | 116 Testcase("shared_module_import_invalid_id.json", |
116 "Invalid value for 'import[0].id'."), | 117 "Invalid value for 'import[0].id'."), |
117 Testcase("shared_module_import_invalid_version.json", | 118 Testcase("shared_module_import_invalid_version.json", |
118 "Invalid value for 'import[0].minimum_version'."), | 119 "Invalid value for 'import[0].minimum_version'."), |
119 }; | 120 }; |
120 RunTestcases(testcases, arraysize(testcases), EXPECT_TYPE_ERROR); | 121 RunTestcases(testcases, arraysize(testcases), EXPECT_TYPE_ERROR); |
121 } | 122 } |
122 | 123 |
123 } // namespace extensions | 124 } // namespace extensions |
OLD | NEW |