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

Unified Diff: chrome/browser/net/chrome_network_delegate_unittest.cc

Issue 940373002: First-Party Cookies: Wire it up as an experimental web platform feature (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@first-party
Patch Set: Test. Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/net/chrome_network_delegate.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/chrome_network_delegate_unittest.cc
diff --git a/chrome/browser/net/chrome_network_delegate_unittest.cc b/chrome/browser/net/chrome_network_delegate_unittest.cc
index 3136bc7792e341a37571b740f1f8a34d418b9056..dbf70400f52260beec306a06887534bb312f2540 100644
--- a/chrome/browser/net/chrome_network_delegate_unittest.cc
+++ b/chrome/browser/net/chrome_network_delegate_unittest.cc
@@ -25,36 +25,6 @@
#include "chrome/browser/extensions/event_router_forwarder.h"
#endif
-TEST(ChromeNetworkDelegateTest, DisableFirstPartyOnlyCookiesIffFlagDisabled) {
- BooleanPrefMember pref_member_;
- scoped_ptr<ChromeNetworkDelegate> delegate;
-
-#if defined(ENABLE_EXTENSIONS)
- scoped_refptr<extensions::EventRouterForwarder> forwarder =
- new extensions::EventRouterForwarder();
- delegate.reset(new ChromeNetworkDelegate(forwarder.get(), &pref_member_));
-#else
- delegate.reset(new ChromeNetworkDelegate(nullptr, &pref_member_));
-#endif
- EXPECT_FALSE(delegate->FirstPartyOnlyCookieExperimentEnabled());
-}
-
-TEST(ChromeNetworkDelegateTest, EnableFirstPartyOnlyCookiesIffFlagEnabled) {
- base::CommandLine::ForCurrentProcess()->AppendSwitch(
- switches::kEnableExperimentalWebPlatformFeatures);
- BooleanPrefMember pref_member_;
- scoped_ptr<ChromeNetworkDelegate> delegate;
-
-#if defined(ENABLE_EXTENSIONS)
- scoped_refptr<extensions::EventRouterForwarder> forwarder =
- new extensions::EventRouterForwarder();
- delegate.reset(new ChromeNetworkDelegate(forwarder.get(), &pref_member_));
-#else
- delegate.reset(new ChromeNetworkDelegate(nullptr, &pref_member_));
-#endif
- EXPECT_TRUE(delegate->FirstPartyOnlyCookieExperimentEnabled());
-}
-
#if defined(ENABLE_EXTENSIONS)
class ChromeNetworkDelegateThrottlingTest : public testing::Test {
protected:
« no previous file with comments | « chrome/browser/net/chrome_network_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698