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

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

Issue 1550593002: Switch to standard integer types in chrome/browser/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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) 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 "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
12 #include "base/message_loop/message_loop.h" 13 #include "base/message_loop/message_loop.h"
13 #include "base/prefs/pref_member.h" 14 #include "base/prefs/pref_member.h"
14 #include "base/run_loop.h" 15 #include "base/run_loop.h"
15 #include "base/test/histogram_tester.h" 16 #include "base/test/histogram_tester.h"
17 #include "build/build_config.h"
16 #include "chrome/browser/browser_process.h" 18 #include "chrome/browser/browser_process.h"
17 #include "chrome/browser/content_settings/cookie_settings_factory.h" 19 #include "chrome/browser/content_settings/cookie_settings_factory.h"
18 #include "chrome/browser/net/safe_search_util.h" 20 #include "chrome/browser/net/safe_search_util.h"
19 #include "chrome/common/pref_names.h" 21 #include "chrome/common/pref_names.h"
20 #include "chrome/test/base/testing_browser_process.h" 22 #include "chrome/test/base/testing_browser_process.h"
21 #include "chrome/test/base/testing_profile.h" 23 #include "chrome/test/base/testing_profile.h"
22 #include "chrome/test/base/testing_profile_manager.h" 24 #include "chrome/test/base/testing_profile_manager.h"
23 #include "components/content_settings/core/browser/cookie_settings.h" 25 #include "components/content_settings/core/browser/cookie_settings.h"
24 #include "components/content_settings/core/common/pref_names.h" 26 #include "components/content_settings/core/common/pref_names.h"
25 #include "components/data_usage/core/data_use_aggregator.h" 27 #include "components/data_usage/core/data_use_aggregator.h"
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 kBlockedFirstPartySite)); 536 kBlockedFirstPartySite));
535 537
536 cookie_settings_->SetCookieSetting( 538 cookie_settings_->SetCookieSetting(
537 ContentSettingsPattern::FromURL(kBlockedFirstPartySite), 539 ContentSettingsPattern::FromURL(kBlockedFirstPartySite),
538 ContentSettingsPattern::Wildcard(), 540 ContentSettingsPattern::Wildcard(),
539 CONTENT_SETTING_BLOCK); 541 CONTENT_SETTING_BLOCK);
540 // Privacy mode is disabled as kAllowedSite is still getting cookies 542 // Privacy mode is disabled as kAllowedSite is still getting cookies
541 EXPECT_FALSE(network_delegate_->CanEnablePrivacyMode(kAllowedSite, 543 EXPECT_FALSE(network_delegate_->CanEnablePrivacyMode(kAllowedSite,
542 kBlockedFirstPartySite)); 544 kBlockedFirstPartySite));
543 } 545 }
OLDNEW
« no previous file with comments | « chrome/browser/net/chrome_network_delegate.cc ('k') | chrome/browser/net/chrome_url_request_context_getter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698