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

Side by Side Diff: chrome/browser/content_settings/extension_content_settings_store_unittest.cc

Issue 10381097: Move content settings extension API to content_settings dir. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 7 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/browser/extensions/extension_content_settings_store.h" 5 #include "chrome/browser/content_settings/extension_content_settings_store.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "chrome/browser/content_settings/content_settings_rule.h" 8 #include "chrome/browser/content_settings/content_settings_rule.h"
9 #include "chrome/browser/content_settings/content_settings_utils.h" 9 #include "chrome/browser/content_settings/content_settings_utils.h"
10 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 12
13 using ::testing::Mock; 13 using ::testing::Mock;
14 14
15 namespace { 15 namespace {
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 ASSERT_EQ(1u, rules.size()); 242 ASSERT_EQ(1u, rules.size());
243 CheckRule(rules[0], pattern_2, pattern_2, CONTENT_SETTING_BLOCK); 243 CheckRule(rules[0], pattern_2, pattern_2, CONTENT_SETTING_BLOCK);
244 244
245 // Uninstall second extension. 245 // Uninstall second extension.
246 store()->UnregisterExtension(ext_id_2); 246 store()->UnregisterExtension(ext_id_2);
247 247
248 GetSettingsForOneTypeFromStore( 248 GetSettingsForOneTypeFromStore(
249 store(), CONTENT_SETTINGS_TYPE_COOKIES, "", incognito, &rules); 249 store(), CONTENT_SETTINGS_TYPE_COOKIES, "", incognito, &rules);
250 ASSERT_EQ(0u, rules.size()); 250 ASSERT_EQ(0u, rules.size());
251 } 251 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698