Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Side by Side Diff: chrome/common/extensions/manifest_handlers/settings_overrides_handler_unittest.cc

Issue 2137463003: [Extensions] Move Feature channel code into //extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test fix Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <memory> 7 #include <memory>
8 8
9 #include "base/json/json_string_value_serializer.h" 9 #include "base/json/json_string_value_serializer.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
11 #include "build/build_config.h" 11 #include "build/build_config.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_settings_overrides\" : {" 25 " \"chrome_settings_overrides\" : {"
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 extensions::manifest_keys::kSettingsOverride), 188 extensions::manifest_keys::kSettingsOverride),
189 error); 189 error);
190 #else 190 #else
191 EXPECT_TRUE(extension.get()); 191 EXPECT_TRUE(extension.get());
192 EXPECT_FALSE( 192 EXPECT_FALSE(
193 extension->manifest()->HasPath(manifest_keys::kSettingsOverride)); 193 extension->manifest()->HasPath(manifest_keys::kSettingsOverride));
194 #endif 194 #endif
195 } 195 }
196 196
197 } // namespace 197 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698