OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/common/extensions/extension_test_util.h" | 5 #include "chrome/common/extensions/extension_test_util.h" |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/json/json_file_value_serializer.h" | 8 #include "base/json/json_file_value_serializer.h" |
9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
11 #include "chrome/common/chrome_paths.h" | 11 #include "chrome/common/chrome_paths.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/manifest_constants.h" | 14 #include "extensions/common/manifest_constants.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 | 16 |
17 using extensions::DictionaryBuilder; | 17 using extensions::DictionaryBuilder; |
18 using extensions::Extension; | 18 using extensions::Extension; |
19 using extensions::ExtensionBuilder; | 19 using extensions::ExtensionBuilder; |
20 using extensions::ListBuilder; | 20 using extensions::ListBuilder; |
21 using extensions::Manifest; | 21 using extensions::Manifest; |
22 | 22 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 const std::string& test_file) { | 108 const std::string& test_file) { |
109 return LoadManifest(dir, test_file, Extension::NO_FLAGS); | 109 return LoadManifest(dir, test_file, Extension::NO_FLAGS); |
110 } | 110 } |
111 | 111 |
112 scoped_refptr<Extension> LoadManifest(const std::string& dir, | 112 scoped_refptr<Extension> LoadManifest(const std::string& dir, |
113 const std::string& test_file) { | 113 const std::string& test_file) { |
114 return LoadManifest(dir, test_file, Extension::NO_FLAGS); | 114 return LoadManifest(dir, test_file, Extension::NO_FLAGS); |
115 } | 115 } |
116 | 116 |
117 } // namespace extension_test_util | 117 } // namespace extension_test_util |
OLD | NEW |