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

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

Issue 3129007: FBTF: Forward declare everything possible in testing_profile.h (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: argh mac problems now Created 10 years, 4 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 #include "chrome/browser/cookies_tree_model.h" 5 #include "chrome/browser/cookies_tree_model.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "chrome/browser/host_content_settings_map.h" 9 #include "chrome/browser/host_content_settings_map.h"
10 #include "chrome/browser/mock_browsing_data_appcache_helper.h" 10 #include "chrome/browser/mock_browsing_data_appcache_helper.h"
11 #include "chrome/browser/mock_browsing_data_database_helper.h" 11 #include "chrome/browser/mock_browsing_data_database_helper.h"
12 #include "chrome/browser/mock_browsing_data_local_storage_helper.h" 12 #include "chrome/browser/mock_browsing_data_local_storage_helper.h"
13 #include "chrome/common/net/url_request_context_getter.h" 13 #include "chrome/common/net/url_request_context_getter.h"
14 #include "chrome/common/notification_details.h"
15 #include "chrome/common/notification_service.h"
16 #include "chrome/common/notification_type.h"
14 #include "chrome/test/testing_profile.h" 17 #include "chrome/test/testing_profile.h"
15 #include "net/url_request/url_request_context.h" 18 #include "net/url_request/url_request_context.h"
16 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
17 20
18 21
19 namespace { 22 namespace {
20 23
21 class StubSettingsObserver : public NotificationObserver { 24 class StubSettingsObserver : public NotificationObserver {
22 public: 25 public:
23 StubSettingsObserver() : counter(0) { 26 StubSettingsObserver() : counter(0) {
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 content_settings, CONTENT_SETTING_SESSION_ONLY); 609 content_settings, CONTENT_SETTING_SESSION_ONLY);
607 610
608 EXPECT_EQ(2, observer.counter); 611 EXPECT_EQ(2, observer.counter);
609 EXPECT_EQ(pattern, observer.last_pattern); 612 EXPECT_EQ(pattern, observer.last_pattern);
610 EXPECT_EQ(CONTENT_SETTING_SESSION_ONLY, 613 EXPECT_EQ(CONTENT_SETTING_SESSION_ONLY,
611 content_settings->GetContentSetting( 614 content_settings->GetContentSetting(
612 host, CONTENT_SETTINGS_TYPE_COOKIES, "")); 615 host, CONTENT_SETTINGS_TYPE_COOKIES, ""));
613 } 616 }
614 617
615 } // namespace 618 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/content_setting_bubble_model_unittest.cc ('k') | chrome/browser/dom_ui/dom_ui_theme_source_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698