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

Side by Side Diff: extensions/browser/management_policy_unittest.cc

Issue 82773002: Move some dependencies of ExtensionService down to extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Presubmit check fixed Created 7 years 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
« no previous file with comments | « extensions/browser/management_policy.cc ('k') | extensions/browser/test_management_policy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/strings/utf_string_conversions.h" 5 #include "base/strings/utf_string_conversions.h"
6 #include "chrome/browser/extensions/management_policy.h" 6 #include "extensions/browser/management_policy.h"
7 #include "chrome/browser/extensions/test_management_policy.h" 7 #include "extensions/browser/test_management_policy.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 9
10 typedef extensions::TestManagementPolicyProvider TestProvider; 10 typedef extensions::TestManagementPolicyProvider TestProvider;
11 using extensions::Extension; 11 using extensions::Extension;
12 12
13 class ManagementPolicyTest : public testing::Test { 13 class ManagementPolicyTest : public testing::Test {
14 public: 14 public:
15 virtual void SetUp() { 15 virtual void SetUp() {
16 allow_all_.SetProhibitedActions(TestProvider::ALLOW_ALL); 16 allow_all_.SetProhibitedActions(TestProvider::ALLOW_ALL);
17 no_modify_status_.SetProhibitedActions( 17 no_modify_status_.SetProhibitedActions(
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 error = original_error16; 202 error = original_error16;
203 EXPECT_FALSE(policy_.UserMayLoad(NULL, &error)); 203 EXPECT_FALSE(policy_.UserMayLoad(NULL, &error));
204 EXPECT_EQ(UTF8ToUTF16(TestProvider::expected_error()), error); 204 EXPECT_EQ(UTF8ToUTF16(TestProvider::expected_error()), error);
205 error = original_error16; 205 error = original_error16;
206 EXPECT_FALSE(policy_.UserMayModifySettings(NULL, &error)); 206 EXPECT_FALSE(policy_.UserMayModifySettings(NULL, &error));
207 EXPECT_EQ(UTF8ToUTF16(TestProvider::expected_error()), error); 207 EXPECT_EQ(UTF8ToUTF16(TestProvider::expected_error()), error);
208 error = original_error16; 208 error = original_error16;
209 EXPECT_TRUE(policy_.MustRemainEnabled(NULL, &error)); 209 EXPECT_TRUE(policy_.MustRemainEnabled(NULL, &error));
210 EXPECT_EQ(UTF8ToUTF16(TestProvider::expected_error()), error); 210 EXPECT_EQ(UTF8ToUTF16(TestProvider::expected_error()), error);
211 } 211 }
OLDNEW
« no previous file with comments | « extensions/browser/management_policy.cc ('k') | extensions/browser/test_management_policy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698