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

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

Issue 6575009: Move files out of chrome\browser\renderer_host\test alongside their source. ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/content_setting_bubble_model.h" 5 #include "chrome/browser/content_setting_bubble_model.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "chrome/browser/browser_thread.h"
10 #include "chrome/browser/content_settings/host_content_settings_map.h" 9 #include "chrome/browser/content_settings/host_content_settings_map.h"
11 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
12 #include "chrome/browser/geolocation/geolocation_content_settings_map.h" 11 #include "chrome/browser/geolocation/geolocation_content_settings_map.h"
13 #include "chrome/browser/renderer_host/test/test_render_view_host.h"
14 #include "chrome/browser/tab_contents/test_tab_contents.h"
15 #include "chrome/common/chrome_switches.h" 12 #include "chrome/common/chrome_switches.h"
16 #include "chrome/test/testing_profile.h" 13 #include "chrome/test/testing_profile.h"
14 #include "content/browser/browser_thread.h"
15 #include "content/browser/renderer_host/test_render_view_host.h"
16 #include "content/browser/tab_contents/test_tab_contents.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 18
19 class ContentSettingBubbleModelTest : public RenderViewHostTestHarness { 19 class ContentSettingBubbleModelTest : public RenderViewHostTestHarness {
20 protected: 20 protected:
21 ContentSettingBubbleModelTest() 21 ContentSettingBubbleModelTest()
22 : ui_thread_(BrowserThread::UI, MessageLoop::current()) { 22 : ui_thread_(BrowserThread::UI, MessageLoop::current()) {
23 } 23 }
24 24
25 void CheckGeolocationBubble(size_t expected_domains, 25 void CheckGeolocationBubble(size_t expected_domains,
26 bool expect_clear_link, 26 bool expect_clear_link,
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 TEST_F(ContentSettingBubbleModelTest, FileURL) { 189 TEST_F(ContentSettingBubbleModelTest, FileURL) {
190 std::string file_url("file:///tmp/test.html"); 190 std::string file_url("file:///tmp/test.html");
191 NavigateAndCommit(GURL(file_url)); 191 NavigateAndCommit(GURL(file_url));
192 scoped_ptr<ContentSettingBubbleModel> content_setting_bubble_model( 192 scoped_ptr<ContentSettingBubbleModel> content_setting_bubble_model(
193 ContentSettingBubbleModel::CreateContentSettingBubbleModel( 193 ContentSettingBubbleModel::CreateContentSettingBubbleModel(
194 contents(), profile_.get(), CONTENT_SETTINGS_TYPE_IMAGES)); 194 contents(), profile_.get(), CONTENT_SETTINGS_TYPE_IMAGES));
195 std::string title = 195 std::string title =
196 content_setting_bubble_model->bubble_content().radio_group.radio_items[0]; 196 content_setting_bubble_model->bubble_content().radio_group.radio_items[0];
197 ASSERT_NE(std::string::npos, title.find(file_url)); 197 ASSERT_NE(std::string::npos, title.find(file_url));
198 } 198 }
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/offline/offline_load_page_unittest.cc ('k') | chrome/browser/content_setting_image_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698