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

Side by Side Diff: chrome/browser/plugins/plugin_info_message_filter_unittest.cc

Issue 1548133002: Switch to standard integer types in chrome/browser/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/plugins/plugin_info_message_filter.h" 5 #include "chrome/browser/plugins/plugin_info_message_filter.h"
6 6
7 #include "base/at_exit.h" 7 #include "base/at_exit.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/bind_helpers.h" 9 #include "base/bind_helpers.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
11 #include "base/run_loop.h" 11 #include "base/run_loop.h"
12 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
13 #include "build/build_config.h"
13 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" 14 #include "chrome/browser/content_settings/host_content_settings_map_factory.h"
14 #include "chrome/common/pref_names.h" 15 #include "chrome/common/pref_names.h"
15 #include "chrome/common/render_messages.h" 16 #include "chrome/common/render_messages.h"
16 #include "chrome/test/base/testing_profile.h" 17 #include "chrome/test/base/testing_profile.h"
17 #include "components/content_settings/core/browser/host_content_settings_map.h" 18 #include "components/content_settings/core/browser/host_content_settings_map.h"
18 #include "components/content_settings/core/common/pref_names.h" 19 #include "components/content_settings/core/common/pref_names.h"
19 #include "components/syncable_prefs/testing_pref_service_syncable.h" 20 #include "components/syncable_prefs/testing_pref_service_syncable.h"
20 #include "content/public/browser/plugin_service.h" 21 #include "content/public/browser/plugin_service.h"
21 #include "content/public/browser/plugin_service_filter.h" 22 #include "content/public/browser/plugin_service_filter.h"
22 #include "content/public/browser/render_process_host.h" 23 #include "content/public/browser/render_process_host.h"
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 profile()->GetTestingPrefService(); 264 profile()->GetTestingPrefService();
264 prefs->SetManagedPref(prefs::kManagedDefaultPluginsSetting, 265 prefs->SetManagedPref(prefs::kManagedDefaultPluginsSetting,
265 new base::FundamentalValue(CONTENT_SETTING_BLOCK)); 266 new base::FundamentalValue(CONTENT_SETTING_BLOCK));
266 267
267 // All plugins should be blocked now. 268 // All plugins should be blocked now.
268 VerifyPluginContentSetting(host, "foo", CONTENT_SETTING_BLOCK, true, true); 269 VerifyPluginContentSetting(host, "foo", CONTENT_SETTING_BLOCK, true, true);
269 VerifyPluginContentSetting(host, "bar", CONTENT_SETTING_BLOCK, true, true); 270 VerifyPluginContentSetting(host, "bar", CONTENT_SETTING_BLOCK, true, true);
270 VerifyPluginContentSetting(unmatched_host, "bar", CONTENT_SETTING_BLOCK, 271 VerifyPluginContentSetting(unmatched_host, "bar", CONTENT_SETTING_BLOCK,
271 true, true); 272 true, true);
272 } 273 }
OLDNEW
« no previous file with comments | « chrome/browser/plugins/plugin_info_message_filter.cc ('k') | chrome/browser/plugins/plugin_infobar_delegates.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698