Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(147)

Side by Side Diff: chrome/common/extensions/manifest_handlers/shared_module_manifest_unittest.cc

Issue 15239002: Move Extension and PermissionsData to extensions/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698