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

Side by Side Diff: chrome/browser/cocoa/content_settings_dialog_controller_unittest.mm

Issue 3203008: Move prefs-related files under chrome/browser/ into a prefs/ subdir. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 3 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) 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 #import "chrome/browser/cocoa/content_settings_dialog_controller.h" 5 #import "chrome/browser/cocoa/content_settings_dialog_controller.h"
6 6
7 #import "base/scoped_nsobject.h" 7 #import "base/scoped_nsobject.h"
8 #include "base/ref_counted.h" 8 #include "base/ref_counted.h"
9 #include "chrome/browser/cocoa/browser_test_helper.h" 9 #include "chrome/browser/cocoa/browser_test_helper.h"
10 #include "chrome/browser/cocoa/cocoa_test_helper.h" 10 #include "chrome/browser/cocoa/cocoa_test_helper.h"
11 #include "chrome/browser/geolocation/geolocation_content_settings_map.h" 11 #include "chrome/browser/geolocation/geolocation_content_settings_map.h"
12 #include "chrome/browser/host_content_settings_map.h" 12 #include "chrome/browser/host_content_settings_map.h"
13 #include "chrome/browser/notifications/desktop_notification_service.h" 13 #include "chrome/browser/notifications/desktop_notification_service.h"
14 #include "chrome/browser/pref_service.h" 14 #include "chrome/browser/prefs/pref_service.h"
15 #include "chrome/common/pref_names.h" 15 #include "chrome/common/pref_names.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 #include "testing/platform_test.h" 17 #include "testing/platform_test.h"
18 18
19 namespace { 19 namespace {
20 20
21 class ContentSettingsDialogControllerTest : public CocoaTest { 21 class ContentSettingsDialogControllerTest : public CocoaTest {
22 public: 22 public:
23 virtual void SetUp() { 23 virtual void SetUp() {
24 CocoaTest::SetUp(); 24 CocoaTest::SetUp();
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 EXPECT_EQ(setting, CONTENT_SETTING_ASK); 259 EXPECT_EQ(setting, CONTENT_SETTING_ASK);
260 260
261 [controller_ setNotificationsSettingIndex:kNotificationsDisabledIndex]; 261 [controller_ setNotificationsSettingIndex:kNotificationsDisabledIndex];
262 setting = 262 setting =
263 notificationsService_->GetDefaultContentSetting(); 263 notificationsService_->GetDefaultContentSetting();
264 EXPECT_EQ(setting, CONTENT_SETTING_BLOCK); 264 EXPECT_EQ(setting, CONTENT_SETTING_BLOCK);
265 } 265 }
266 266
267 } // namespace 267 } // namespace
268 268
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698