| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "chrome/common/extensions/manifest_handlers/settings_overrides_handler.
h" | 5 #include "chrome/common/extensions/manifest_handlers/settings_overrides_handler.
h" |
| 6 | 6 |
| 7 #include "base/json/json_string_value_serializer.h" | 7 #include "base/json/json_string_value_serializer.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "build/build_config.h" |
| 9 #include "extensions/common/error_utils.h" | 10 #include "extensions/common/error_utils.h" |
| 10 #include "extensions/common/extension.h" | 11 #include "extensions/common/extension.h" |
| 11 #include "extensions/common/manifest_constants.h" | 12 #include "extensions/common/manifest_constants.h" |
| 12 #include "extensions/common/manifest_url_handlers.h" | 13 #include "extensions/common/manifest_url_handlers.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 14 | 15 |
| 15 namespace { | 16 namespace { |
| 16 | 17 |
| 17 const char kManifest[] = "{" | 18 const char kManifest[] = "{" |
| 18 " \"version\" : \"1.0.0.0\"," | 19 " \"version\" : \"1.0.0.0\"," |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 extensions::manifest_keys::kSettingsOverride), | 170 extensions::manifest_keys::kSettingsOverride), |
| 170 error); | 171 error); |
| 171 #else | 172 #else |
| 172 EXPECT_TRUE(extension.get()); | 173 EXPECT_TRUE(extension.get()); |
| 173 EXPECT_FALSE( | 174 EXPECT_FALSE( |
| 174 extension->manifest()->HasPath(manifest_keys::kSettingsOverride)); | 175 extension->manifest()->HasPath(manifest_keys::kSettingsOverride)); |
| 175 #endif | 176 #endif |
| 176 } | 177 } |
| 177 | 178 |
| 178 } // namespace | 179 } // namespace |
| OLD | NEW |