| OLD | NEW |
| 1 /* | 1 /* |
| 2 * This file is part of Adblock Plus <https://adblockplus.org/>, | 2 * This file is part of Adblock Plus <https://adblockplus.org/>, |
| 3 * Copyright (C) 2006-present eyeo GmbH | 3 * Copyright (C) 2006-present eyeo GmbH |
| 4 * | 4 * |
| 5 * Adblock Plus is free software: you can redistribute it and/or modify | 5 * Adblock Plus is free software: you can redistribute it and/or modify |
| 6 * it under the terms of the GNU General Public License version 3 as | 6 * it under the terms of the GNU General Public License version 3 as |
| 7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
| 8 * | 8 * |
| 9 * Adblock Plus is distributed in the hope that it will be useful, | 9 * Adblock Plus is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 * GNU General Public License for more details. | 12 * GNU General Public License for more details. |
| 13 * | 13 * |
| 14 * You should have received a copy of the GNU General Public License | 14 * You should have received a copy of the GNU General Public License |
| 15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. | 15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
| 16 */ | 16 */ |
| 17 | 17 |
| 18 #include <sstream> | |
| 19 #include "BaseJsTest.h" | 18 #include "BaseJsTest.h" |
| 20 #include "../src/Thread.h" | |
| 21 #include <atomic> | |
| 22 #include <mutex> | |
| 23 | 19 |
| 24 using namespace AdblockPlus; | 20 using namespace AdblockPlus; |
| 25 | 21 |
| 26 namespace | 22 namespace |
| 27 { | 23 { |
| 28 class BaseWebRequestTest : public BaseJsTest | 24 class BaseWebRequestTest : public BaseJsTest |
| 29 { | 25 { |
| 30 protected: | 26 protected: |
| 31 void SetUp() | 27 void SetUp() |
| 32 { | 28 { |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 EXPECT_EQ(AdblockPlus::LogSystem::LOG_LEVEL_TRACE, catchLogSystem->lastLogLeve
l); | 367 EXPECT_EQ(AdblockPlus::LogSystem::LOG_LEVEL_TRACE, catchLogSystem->lastLogLeve
l); |
| 372 EXPECT_EQ("", catchLogSystem->lastMessage); | 368 EXPECT_EQ("", catchLogSystem->lastMessage); |
| 373 ProcessPendingWebRequests(); | 369 ProcessPendingWebRequests(); |
| 374 { | 370 { |
| 375 auto headersRequest = GetHeadersForRequest(url); | 371 auto headersRequest = GetHeadersForRequest(url); |
| 376 EXPECT_TRUE(headersRequest.first); | 372 EXPECT_TRUE(headersRequest.first); |
| 377 const auto& headers = headersRequest.second; | 373 const auto& headers = headersRequest.second; |
| 378 EXPECT_FALSE(headers.cend() == headers.find("Security")); | 374 EXPECT_FALSE(headers.cend() == headers.find("Security")); |
| 379 } | 375 } |
| 380 } | 376 } |
| OLD | NEW |