| 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/ui_overrides_handler.h" | 5 #include "chrome/common/extensions/manifest_handlers/ui_overrides_handler.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/json/json_string_value_serializer.h" | 10 #include "base/json/json_string_value_serializer.h" |
| 11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
| 12 #include "chrome/common/extensions/features/feature_channel.h" | |
| 13 #include "components/version_info/version_info.h" | 12 #include "components/version_info/version_info.h" |
| 14 #include "extensions/common/error_utils.h" | 13 #include "extensions/common/error_utils.h" |
| 15 #include "extensions/common/extension.h" | 14 #include "extensions/common/extension.h" |
| 15 #include "extensions/common/features/feature_channel.h" |
| 16 #include "extensions/common/manifest_constants.h" | 16 #include "extensions/common/manifest_constants.h" |
| 17 #include "extensions/common/manifest_url_handlers.h" | 17 #include "extensions/common/manifest_url_handlers.h" |
| 18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| 22 const char kManifest[] = "{" | 22 const char kManifest[] = "{" |
| 23 " \"version\" : \"1.0.0.0\"," | 23 " \"version\" : \"1.0.0.0\"," |
| 24 " \"name\" : \"Test\"," | 24 " \"name\" : \"Test\"," |
| 25 " \"chrome_ui_overrides\" : {" | 25 " \"chrome_ui_overrides\" : {" |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 &error); | 94 &error); |
| 95 EXPECT_FALSE(extension.get()); | 95 EXPECT_FALSE(extension.get()); |
| 96 EXPECT_EQ( | 96 EXPECT_EQ( |
| 97 extensions::ErrorUtils::FormatErrorMessage( | 97 extensions::ErrorUtils::FormatErrorMessage( |
| 98 extensions::manifest_errors::kInvalidEmptyDictionary, | 98 extensions::manifest_errors::kInvalidEmptyDictionary, |
| 99 extensions::manifest_keys::kUIOverride), | 99 extensions::manifest_keys::kUIOverride), |
| 100 error); | 100 error); |
| 101 } | 101 } |
| 102 | 102 |
| 103 } // namespace | 103 } // namespace |
| OLD | NEW |