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

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

Issue 15239002: Move Extension and PermissionsData to extensions/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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 | Annotate | Revision Log
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 "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 "chrome/common/extensions/extension.h"
10 #include "chrome/common/extensions/features/feature_channel.h" 9 #include "chrome/common/extensions/features/feature_channel.h"
11 #include "chrome/common/extensions/manifest_url_handler.h" 10 #include "chrome/common/extensions/manifest_url_handler.h"
11 #include "extensions/common/extension.h"
12 #include "extensions/common/manifest_constants.h" 12 #include "extensions/common/manifest_constants.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 14
15 namespace { 15 namespace {
16 16
17 const char kManifest[] = "{" 17 const char kManifest[] = "{"
18 " \"version\" : \"1.0.0.0\"," 18 " \"version\" : \"1.0.0.0\","
19 " \"name\" : \"Test\"," 19 " \"name\" : \"Test\","
20 " \"chrome_settings_overrides\" : {" 20 " \"chrome_settings_overrides\" : {"
21 " \"homepage\" : \"http://www.homepage.com\"," 21 " \"homepage\" : \"http://www.homepage.com\","
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 EXPECT_EQ("UTF-8", search_engine->encoding); 75 EXPECT_EQ("UTF-8", search_engine->encoding);
76 76
77 EXPECT_EQ(std::vector<GURL>(1, GURL("http://www.startup.com")), 77 EXPECT_EQ(std::vector<GURL>(1, GURL("http://www.startup.com")),
78 settings_override->startup_pages); 78 settings_override->startup_pages);
79 79
80 ASSERT_TRUE(settings_override->homepage); 80 ASSERT_TRUE(settings_override->homepage);
81 EXPECT_EQ(GURL("http://www.homepage.com"), *settings_override->homepage); 81 EXPECT_EQ(GURL("http://www.homepage.com"), *settings_override->homepage);
82 } 82 }
83 83
84 } // namespace 84 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698