| 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 "base/command_line.h" | 5 #include "base/command_line.h" |
| 6 #include "base/json/json_file_value_serializer.h" | 6 #include "base/json/json_file_value_serializer.h" |
| 7 #include "base/memory/linked_ptr.h" | 7 #include "base/memory/linked_ptr.h" |
| 8 #include "chrome/common/extensions/manifest_handlers/app_isolation_info.h" | |
| 9 #include "chrome/common/extensions/manifest_tests/chrome_manifest_test.h" | 8 #include "chrome/common/extensions/manifest_tests/chrome_manifest_test.h" |
| 10 #include "extensions/common/error_utils.h" | 9 #include "extensions/common/error_utils.h" |
| 11 #include "extensions/common/features/simple_feature.h" | 10 #include "extensions/common/features/simple_feature.h" |
| 12 #include "extensions/common/manifest_constants.h" | 11 #include "extensions/common/manifest_constants.h" |
| 12 #include "extensions/common/manifest_handlers/app_isolation_info.h" |
| 13 #include "extensions/common/manifest_handlers/csp_info.h" | 13 #include "extensions/common/manifest_handlers/csp_info.h" |
| 14 #include "extensions/common/manifest_handlers/incognito_info.h" | 14 #include "extensions/common/manifest_handlers/incognito_info.h" |
| 15 #include "extensions/common/switches.h" | 15 #include "extensions/common/switches.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 17 | 17 |
| 18 namespace extensions { | 18 namespace extensions { |
| 19 | 19 |
| 20 namespace errors = manifest_errors; | 20 namespace errors = manifest_errors; |
| 21 | 21 |
| 22 class PlatformAppsManifestTest : public ChromeManifestTest { | 22 class PlatformAppsManifestTest : public ChromeManifestTest { |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 | 140 |
| 141 // Now try again with the experimental flag set. | 141 // Now try again with the experimental flag set. |
| 142 base::CommandLine::ForCurrentProcess()->AppendSwitch( | 142 base::CommandLine::ForCurrentProcess()->AppendSwitch( |
| 143 switches::kEnableExperimentalExtensionApis); | 143 switches::kEnableExperimentalExtensionApis); |
| 144 for (size_t i = 0; i < arraysize(kPlatformAppExperimentalApis); ++i) { | 144 for (size_t i = 0; i < arraysize(kPlatformAppExperimentalApis); ++i) { |
| 145 LoadAndExpectSuccess(ManifestData(manifests[i].get(), "")); | 145 LoadAndExpectSuccess(ManifestData(manifests[i].get(), "")); |
| 146 } | 146 } |
| 147 } | 147 } |
| 148 | 148 |
| 149 } // namespace extensions | 149 } // namespace extensions |
| OLD | NEW |