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

Side by Side Diff: chrome/browser/notifications/message_center_settings_controller_unittest.cc

Issue 1550593002: Switch to standard integer types in chrome/browser/, part 2 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 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 <string> 5 #include <string>
6 #include <utility> 6 #include <utility>
7 7
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/macros.h"
9 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
11 #include "build/build_config.h"
10 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" 12 #include "chrome/browser/content_settings/host_content_settings_map_factory.h"
11 #include "chrome/browser/extensions/extension_service.h" 13 #include "chrome/browser/extensions/extension_service.h"
12 #include "chrome/browser/extensions/test_extension_system.h" 14 #include "chrome/browser/extensions/test_extension_system.h"
13 #include "chrome/browser/notifications/desktop_notification_profile_util.h" 15 #include "chrome/browser/notifications/desktop_notification_profile_util.h"
14 #include "chrome/browser/notifications/message_center_settings_controller.h" 16 #include "chrome/browser/notifications/message_center_settings_controller.h"
15 #include "chrome/browser/profiles/profile_info_cache.h" 17 #include "chrome/browser/profiles/profile_info_cache.h"
16 #include "chrome/browser/profiles/profile_manager.h" 18 #include "chrome/browser/profiles/profile_manager.h"
17 #include "chrome/test/base/testing_browser_process.h" 19 #include "chrome/test/base/testing_browser_process.h"
18 #include "chrome/test/base/testing_profile_manager.h" 20 #include "chrome/test/base/testing_profile_manager.h"
19 #include "components/content_settings/core/browser/host_content_settings_map.h" 21 #include "components/content_settings/core/browser/host_content_settings_map.h"
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 // (5) Enable the permission when the default is blocked (expected to set). 341 // (5) Enable the permission when the default is blocked (expected to set).
340 controller()->SetNotifierEnabled(disabled_notifier, true); 342 controller()->SetNotifierEnabled(disabled_notifier, true);
341 EXPECT_EQ(CONTENT_SETTING_ALLOW, 343 EXPECT_EQ(CONTENT_SETTING_ALLOW,
342 DesktopNotificationProfileUtil::GetContentSetting(profile, origin)); 344 DesktopNotificationProfileUtil::GetContentSetting(profile, origin));
343 345
344 // (6) Disable the permission when the default is blocked (expected to clear). 346 // (6) Disable the permission when the default is blocked (expected to clear).
345 controller()->SetNotifierEnabled(enabled_notifier, false); 347 controller()->SetNotifierEnabled(enabled_notifier, false);
346 EXPECT_EQ(CONTENT_SETTING_BLOCK, 348 EXPECT_EQ(CONTENT_SETTING_BLOCK,
347 DesktopNotificationProfileUtil::GetContentSetting(profile, origin)); 349 DesktopNotificationProfileUtil::GetContentSetting(profile, origin));
348 } 350 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698