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

Side by Side Diff: net/cookies/cookie_store_unittest.h

Issue 2258603004: Disable CookieStoreTest.InvalidDomainTest on iOS10 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef NET_COOKIES_COOKIE_STORE_UNITTEST_H_ 5 #ifndef NET_COOKIES_COOKIE_STORE_UNITTEST_H_
6 #define NET_COOKIES_COOKIE_STORE_UNITTEST_H_ 6 #define NET_COOKIES_COOKIE_STORE_UNITTEST_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 EXPECT_TRUE(this->SetCookie(cs, url_bcd, "X=cd; domain=.c.d.com")); 590 EXPECT_TRUE(this->SetCookie(cs, url_bcd, "X=cd; domain=.c.d.com"));
591 this->MatchCookieLines("b=2; c=3; d=4; X=bcd; X=cd", 591 this->MatchCookieLines("b=2; c=3; d=4; X=bcd; X=cd",
592 this->GetCookies(cs, url_bcd)); 592 this->GetCookies(cs, url_bcd));
593 this->MatchCookieLines("c=3; d=4; X=cd", this->GetCookies(cs, url_cd)); 593 this->MatchCookieLines("c=3; d=4; X=cd", this->GetCookies(cs, url_cd));
594 } 594 }
595 595
596 // Test that setting a cookie which specifies an invalid domain has 596 // Test that setting a cookie which specifies an invalid domain has
597 // no side-effect. An invalid domain in this context is one which does 597 // no side-effect. An invalid domain in this context is one which does
598 // not match the originating domain. 598 // not match the originating domain.
599 TYPED_TEST_P(CookieStoreTest, InvalidDomainTest) { 599 TYPED_TEST_P(CookieStoreTest, InvalidDomainTest) {
600 #if defined(__IPHONE_10_0)
601 // TODO(crbug.com/639167): Reenable this test on iOS10.
602 return;
603 #endif
600 CookieStore* cs = this->GetCookieStore(); 604 CookieStore* cs = this->GetCookieStore();
601 GURL url_foobar("http://foo.bar.com"); 605 GURL url_foobar("http://foo.bar.com");
602 606
603 // More specific sub-domain than allowed. 607 // More specific sub-domain than allowed.
604 EXPECT_FALSE(this->SetCookie(cs, url_foobar, "a=1; domain=.yo.foo.bar.com")); 608 EXPECT_FALSE(this->SetCookie(cs, url_foobar, "a=1; domain=.yo.foo.bar.com"));
605 // Regression test for https://crbug.com/601786 609 // Regression test for https://crbug.com/601786
606 EXPECT_FALSE( 610 EXPECT_FALSE(
607 this->SetCookie(cs, url_foobar, "a=1; domain=.yo.foo.bar.com; domain=")); 611 this->SetCookie(cs, url_foobar, "a=1; domain=.yo.foo.bar.com; domain="));
608 612
609 EXPECT_FALSE(this->SetCookie(cs, url_foobar, "b=2; domain=.foo.com")); 613 EXPECT_FALSE(this->SetCookie(cs, url_foobar, "b=2; domain=.foo.com"));
(...skipping 840 matching lines...) Expand 10 before | Expand all | Expand 10 after
1450 OverwritePersistentCookie, 1454 OverwritePersistentCookie,
1451 CookieOrdering, 1455 CookieOrdering,
1452 GetAllCookiesAsync, 1456 GetAllCookiesAsync,
1453 DeleteCookieAsync, 1457 DeleteCookieAsync,
1454 DeleteCanonicalCookieAsync, 1458 DeleteCanonicalCookieAsync,
1455 DeleteSessionCookie); 1459 DeleteSessionCookie);
1456 1460
1457 } // namespace net 1461 } // namespace net
1458 1462
1459 #endif // NET_COOKIES_COOKIE_STORE_UNITTEST_H_ 1463 #endif // NET_COOKIES_COOKIE_STORE_UNITTEST_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698