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

Side by Side Diff: chrome/browser/ui/content_settings/content_setting_bubble_model_unittest.cc

Issue 240193003: Move Infobars core files to the Infobars component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nib name on mac Created 6 years, 8 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 | Annotate | Revision Log
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/auto_reset.h" 5 #include "base/auto_reset.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "chrome/browser/content_settings/host_content_settings_map.h" 8 #include "chrome/browser/content_settings/host_content_settings_map.h"
9 #include "chrome/browser/content_settings/tab_specific_content_settings.h" 9 #include "chrome/browser/content_settings/tab_specific_content_settings.h"
10 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" 10 #include "chrome/browser/custom_handlers/protocol_handler_registry.h"
11 #include "chrome/browser/infobars/infobar_delegate.h"
12 #include "chrome/browser/infobars/infobar_service.h" 11 #include "chrome/browser/infobars/infobar_service.h"
13 #include "chrome/browser/media/media_capture_devices_dispatcher.h" 12 #include "chrome/browser/media/media_capture_devices_dispatcher.h"
14 #include "chrome/browser/profiles/profile.h" 13 #include "chrome/browser/profiles/profile.h"
15 #include "chrome/browser/ui/content_settings/content_setting_bubble_model.h" 14 #include "chrome/browser/ui/content_settings/content_setting_bubble_model.h"
16 #include "chrome/common/chrome_switches.h" 15 #include "chrome/common/chrome_switches.h"
17 #include "chrome/common/content_settings.h" 16 #include "chrome/common/content_settings.h"
18 #include "chrome/test/base/chrome_render_view_host_test_harness.h" 17 #include "chrome/test/base/chrome_render_view_host_test_harness.h"
19 #include "chrome/test/base/testing_profile.h" 18 #include "chrome/test/base/testing_profile.h"
19 #include "components/infobars/core/infobar_delegate.h"
20 #include "content/public/browser/web_contents.h" 20 #include "content/public/browser/web_contents.h"
21 #include "content/public/test/web_contents_tester.h" 21 #include "content/public/test/web_contents_tester.h"
22 #include "grit/generated_resources.h" 22 #include "grit/generated_resources.h"
23 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
24 #include "ui/base/l10n/l10n_util.h" 24 #include "ui/base/l10n/l10n_util.h"
25 25
26 using content::WebContentsTester; 26 using content::WebContentsTester;
27 27
28 class ContentSettingBubbleModelTest : public ChromeRenderViewHostTestHarness { 28 class ContentSettingBubbleModelTest : public ChromeRenderViewHostTestHarness {
29 protected: 29 protected:
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 ProtocolHandler handler = registry.GetHandlerFor("mailto"); 663 ProtocolHandler handler = registry.GetHandlerFor("mailto");
664 ASSERT_FALSE(handler.IsEmpty()); 664 ASSERT_FALSE(handler.IsEmpty());
665 EXPECT_EQ(base::ASCIIToUTF16("Handler"), handler.title()); 665 EXPECT_EQ(base::ASCIIToUTF16("Handler"), handler.title());
666 EXPECT_EQ(CONTENT_SETTING_ALLOW, 666 EXPECT_EQ(CONTENT_SETTING_ALLOW,
667 content_settings->pending_protocol_handler_setting()); 667 content_settings->pending_protocol_handler_setting());
668 EXPECT_FALSE(registry.IsIgnored(test_handler)); 668 EXPECT_FALSE(registry.IsIgnored(test_handler));
669 } 669 }
670 670
671 registry.Shutdown(); 671 registry.Shutdown();
672 } 672 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698