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

Side by Side Diff: chrome/browser/chromeos/login/saml/saml_browsertest.cc

Issue 2845393002: Disable TransferCookiesUnaffiliated test under Debug (Closed)
Patch Set: Created 3 years, 7 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <cstring> 5 #include <cstring>
6 #include <memory> 6 #include <memory>
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 1329 matching lines...) Expand 10 before | Expand all | Expand 10 after
1340 EnableTransferSAMLCookiesPolicy(); 1340 EnableTransferSAMLCookiesPolicy();
1341 LogInWithSAML(kFirstSAMLUserEmail, kTestAuthSIDCookie2, kTestAuthLSIDCookie2); 1341 LogInWithSAML(kFirstSAMLUserEmail, kTestAuthSIDCookie2, kTestAuthLSIDCookie2);
1342 1342
1343 GetCookies(); 1343 GetCookies();
1344 EXPECT_EQ(kTestAuthSIDCookie1, GetCookieValue(kGAIASIDCookieName)); 1344 EXPECT_EQ(kTestAuthSIDCookie1, GetCookieValue(kGAIASIDCookieName));
1345 EXPECT_EQ(kTestAuthLSIDCookie1, GetCookieValue(kGAIALSIDCookieName)); 1345 EXPECT_EQ(kTestAuthLSIDCookie1, GetCookieValue(kGAIALSIDCookieName));
1346 EXPECT_EQ(kSAMLIdPCookieValue2, GetCookieValue(kSAMLIdPCookieName)); 1346 EXPECT_EQ(kSAMLIdPCookieValue2, GetCookieValue(kSAMLIdPCookieName));
1347 } 1347 }
1348 1348
1349 // PRE_TransferCookiesUnaffiliated and TransferCookiesUnaffiliated are flaky on 1349 // PRE_TransferCookiesUnaffiliated and TransferCookiesUnaffiliated are flaky on
1350 // MSAN and ASAN, most probably timing out. See crbug.com/683161. 1350 // MSAN, ASAN, Debug due to time out - most likely, because of the general
1351 #if defined(MEMORY_SANITIZER) || defined(ADDRESS_SANITIZER) 1351 // slowness of the test. See crbug.com/683161, crbug.com/714167.
1352 #if defined(MEMORY_SANITIZER) || defined(ADDRESS_SANITIZER) || !defined(NDEBUG)
1352 #define MAYBE_PRE_TransferCookiesUnaffiliated \ 1353 #define MAYBE_PRE_TransferCookiesUnaffiliated \
1353 DISABLED_PRE_TransferCookiesUnaffiliated 1354 DISABLED_PRE_TransferCookiesUnaffiliated
1354 #define MAYBE_TransferCookiesUnaffiliated DISABLED_TransferCookiesUnaffiliated 1355 #define MAYBE_TransferCookiesUnaffiliated DISABLED_TransferCookiesUnaffiliated
1355 #else 1356 #else
1356 #define MAYBE_PRE_TransferCookiesUnaffiliated PRE_TransferCookiesUnaffiliated 1357 #define MAYBE_PRE_TransferCookiesUnaffiliated PRE_TransferCookiesUnaffiliated
1357 #define MAYBE_TransferCookiesUnaffiliated TransferCookiesUnaffiliated 1358 #define MAYBE_TransferCookiesUnaffiliated TransferCookiesUnaffiliated
1358 #endif 1359 #endif
1359 1360
1360 IN_PROC_BROWSER_TEST_F(SAMLPolicyTest, MAYBE_PRE_TransferCookiesUnaffiliated) { 1361 IN_PROC_BROWSER_TEST_F(SAMLPolicyTest, MAYBE_PRE_TransferCookiesUnaffiliated) {
1361 fake_saml_idp()->SetCookieValue(kSAMLIdPCookieValue1); 1362 fake_saml_idp()->SetCookieValue(kSAMLIdPCookieValue1);
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
1477 ->SetContentSettingDefaultScope(url3, url3, 1478 ->SetContentSettingDefaultScope(url3, url3,
1478 CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA, 1479 CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA,
1479 std::string(), CONTENT_SETTING_ALLOW); 1480 std::string(), CONTENT_SETTING_ALLOW);
1480 1481
1481 EXPECT_FALSE( 1482 EXPECT_FALSE(
1482 MediaCaptureDevicesDispatcher::GetInstance()->CheckMediaAccessPermission( 1483 MediaCaptureDevicesDispatcher::GetInstance()->CheckMediaAccessPermission(
1483 web_contents, url3, content::MEDIA_DEVICE_VIDEO_CAPTURE)); 1484 web_contents, url3, content::MEDIA_DEVICE_VIDEO_CAPTURE));
1484 } 1485 }
1485 1486
1486 } // namespace chromeos 1487 } // namespace chromeos
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