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 <memory> | 5 #include <memory> |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/json/json_file_value_serializer.h" | 8 #include "base/json/json_file_value_serializer.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/linked_ptr.h" | |
11 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
12 #include "chrome/common/extensions/manifest_tests/chrome_manifest_test.h" | 11 #include "chrome/common/extensions/manifest_tests/chrome_manifest_test.h" |
13 #include "extensions/common/error_utils.h" | 12 #include "extensions/common/error_utils.h" |
14 #include "extensions/common/features/simple_feature.h" | 13 #include "extensions/common/features/simple_feature.h" |
15 #include "extensions/common/manifest_constants.h" | 14 #include "extensions/common/manifest_constants.h" |
16 #include "extensions/common/manifest_handlers/app_isolation_info.h" | 15 #include "extensions/common/manifest_handlers/app_isolation_info.h" |
17 #include "extensions/common/manifest_handlers/csp_info.h" | 16 #include "extensions/common/manifest_handlers/csp_info.h" |
18 #include "extensions/common/manifest_handlers/incognito_info.h" | 17 #include "extensions/common/manifest_handlers/incognito_info.h" |
19 #include "extensions/common/switches.h" | 18 #include "extensions/common/switches.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 } | 141 } |
143 | 142 |
144 // Now try again with the experimental flag set. | 143 // Now try again with the experimental flag set. |
145 base::CommandLine::ForCurrentProcess()->AppendSwitch( | 144 base::CommandLine::ForCurrentProcess()->AppendSwitch( |
146 switches::kEnableExperimentalExtensionApis); | 145 switches::kEnableExperimentalExtensionApis); |
147 for (const std::unique_ptr<ManifestData>& manifest : manifests) | 146 for (const std::unique_ptr<ManifestData>& manifest : manifests) |
148 LoadAndExpectSuccess(*manifest); | 147 LoadAndExpectSuccess(*manifest); |
149 } | 148 } |
150 | 149 |
151 } // namespace extensions | 150 } // namespace extensions |
OLD | NEW |