| 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 "base/version.h" | 5 #include "base/version.h" |
| 6 #include "chrome/common/extensions/extension.h" | |
| 7 #include "chrome/common/extensions/manifest_handlers/shared_module_info.h" | 6 #include "chrome/common/extensions/manifest_handlers/shared_module_info.h" |
| 8 #include "chrome/common/extensions/manifest_tests/extension_manifest_test.h" | 7 #include "chrome/common/extensions/manifest_tests/extension_manifest_test.h" |
| 8 #include "extensions/common/extension.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 | 10 |
| 11 namespace { | 11 namespace { |
| 12 | 12 |
| 13 const char* kValidImportPath = | 13 const char* kValidImportPath = |
| 14 "_modules/abcdefghijklmnopabcdefghijklmnop/foo/bar.html"; | 14 "_modules/abcdefghijklmnopabcdefghijklmnop/foo/bar.html"; |
| 15 const char* kValidImportPathID = "abcdefghijklmnopabcdefghijklmnop"; | 15 const char* kValidImportPathID = "abcdefghijklmnopabcdefghijklmnop"; |
| 16 const char* kValidImportPathRelative = "foo/bar.html"; | 16 const char* kValidImportPathRelative = "foo/bar.html"; |
| 17 const char* kInvalidImportPath = "_modules/abc/foo.html"; | 17 const char* kInvalidImportPath = "_modules/abc/foo.html"; |
| 18 const char* kImportId1 = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; | 18 const char* kImportId1 = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 "Invalid value for 'import'."), | 111 "Invalid value for 'import'."), |
| 112 Testcase("shared_module_import_invalid_id.json", | 112 Testcase("shared_module_import_invalid_id.json", |
| 113 "Invalid value for 'import[0].id'."), | 113 "Invalid value for 'import[0].id'."), |
| 114 Testcase("shared_module_import_invalid_version.json", | 114 Testcase("shared_module_import_invalid_version.json", |
| 115 "Invalid value for 'import[0].minimum_version'."), | 115 "Invalid value for 'import[0].minimum_version'."), |
| 116 }; | 116 }; |
| 117 RunTestcases(testcases, arraysize(testcases), EXPECT_TYPE_ERROR); | 117 RunTestcases(testcases, arraysize(testcases), EXPECT_TYPE_ERROR); |
| 118 } | 118 } |
| 119 | 119 |
| 120 } // namespace extensions | 120 } // namespace extensions |
| OLD | NEW |