mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
tests: Fix failures on multiple execution of HSTSRedirectTest.Redirect (see issue #3336)
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
#include "tests/ceftests/test_handler.h"
|
#include "tests/ceftests/test_handler.h"
|
||||||
#include "tests/ceftests/test_server.h"
|
#include "tests/ceftests/test_server.h"
|
||||||
#include "tests/ceftests/test_server_observer.h"
|
#include "tests/ceftests/test_server_observer.h"
|
||||||
|
#include "tests/ceftests/test_util.h"
|
||||||
#include "tests/gtest/include/gtest/gtest.h"
|
#include "tests/gtest/include/gtest/gtest.h"
|
||||||
#include "tests/shared/common/string_util.h"
|
#include "tests/shared/common/string_util.h"
|
||||||
|
|
||||||
@@ -261,7 +262,11 @@ class HSTSRedirectTest : public TestHandler {
|
|||||||
https_url_ = url;
|
https_url_ = url;
|
||||||
EXPECT_TRUE(https_url_.find("https://localhost:") == 0);
|
EXPECT_TRUE(https_url_.find("https://localhost:") == 0);
|
||||||
|
|
||||||
CreateBrowser(http_url_);
|
// Create a new in-memory context so HSTS decisions aren't cached.
|
||||||
|
auto request_context = CreateTestRequestContext(
|
||||||
|
TEST_RC_MODE_CUSTOM, /*cache_path=*/std::string());
|
||||||
|
|
||||||
|
CreateBrowser(http_url_, request_context);
|
||||||
}
|
}
|
||||||
|
|
||||||
void StopHttpServer() {
|
void StopHttpServer() {
|
||||||
|
Reference in New Issue
Block a user