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

Side by Side Diff: chrome/browser/net/chrome_network_delegate_unittest.cc

Issue 2459823002: [Sync] Rename syncable_prefs to sync_preferences. (Closed)
Patch Set: Created 4 years, 1 month 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) 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 "chrome/browser/net/chrome_network_delegate.h" 5 #include "chrome/browser/net/chrome_network_delegate.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <utility> 10 #include <utility>
(...skipping 12 matching lines...) Expand all
23 #include "chrome/test/base/testing_browser_process.h" 23 #include "chrome/test/base/testing_browser_process.h"
24 #include "chrome/test/base/testing_profile.h" 24 #include "chrome/test/base/testing_profile.h"
25 #include "chrome/test/base/testing_profile_manager.h" 25 #include "chrome/test/base/testing_profile_manager.h"
26 #include "components/content_settings/core/browser/cookie_settings.h" 26 #include "components/content_settings/core/browser/cookie_settings.h"
27 #include "components/content_settings/core/common/pref_names.h" 27 #include "components/content_settings/core/common/pref_names.h"
28 #include "components/data_usage/core/data_use_aggregator.h" 28 #include "components/data_usage/core/data_use_aggregator.h"
29 #include "components/data_usage/core/data_use_amortizer.h" 29 #include "components/data_usage/core/data_use_amortizer.h"
30 #include "components/data_usage/core/data_use_annotator.h" 30 #include "components/data_usage/core/data_use_annotator.h"
31 #include "components/data_use_measurement/core/data_use_user_data.h" 31 #include "components/data_use_measurement/core/data_use_user_data.h"
32 #include "components/prefs/pref_member.h" 32 #include "components/prefs/pref_member.h"
33 #include "components/syncable_prefs/testing_pref_service_syncable.h" 33 #include "components/sync_preferences/testing_pref_service_syncable.h"
34 #include "content/public/browser/resource_request_info.h" 34 #include "content/public/browser/resource_request_info.h"
35 #include "content/public/common/content_switches.h" 35 #include "content/public/common/content_switches.h"
36 #include "content/public/common/resource_type.h" 36 #include "content/public/common/resource_type.h"
37 #include "content/public/test/test_browser_thread_bundle.h" 37 #include "content/public/test/test_browser_thread_bundle.h"
38 #include "net/base/request_priority.h" 38 #include "net/base/request_priority.h"
39 #include "net/http/http_request_headers.h" 39 #include "net/http/http_request_headers.h"
40 #include "net/socket/socket_test_util.h" 40 #include "net/socket/socket_test_util.h"
41 #include "net/url_request/url_request.h" 41 #include "net/url_request/url_request.h"
42 #include "net/url_request/url_request_test_util.h" 42 #include "net/url_request/url_request_test_util.h"
43 #include "testing/gtest/include/gtest/gtest.h" 43 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 658
659 EXPECT_FALSE(network_delegate_->CanEnablePrivacyMode(kAllowedSite, 659 EXPECT_FALSE(network_delegate_->CanEnablePrivacyMode(kAllowedSite,
660 kBlockedFirstPartySite)); 660 kBlockedFirstPartySite));
661 661
662 cookie_settings_->SetCookieSetting(kBlockedFirstPartySite, 662 cookie_settings_->SetCookieSetting(kBlockedFirstPartySite,
663 CONTENT_SETTING_BLOCK); 663 CONTENT_SETTING_BLOCK);
664 // Privacy mode is disabled as kAllowedSite is still getting cookies 664 // Privacy mode is disabled as kAllowedSite is still getting cookies
665 EXPECT_FALSE(network_delegate_->CanEnablePrivacyMode(kAllowedSite, 665 EXPECT_FALSE(network_delegate_->CanEnablePrivacyMode(kAllowedSite,
666 kBlockedFirstPartySite)); 666 kBlockedFirstPartySite));
667 } 667 }
OLDNEW
« no previous file with comments | « chrome/browser/font_family_cache_unittest.cc ('k') | chrome/browser/notifications/extension_welcome_notification.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698