LEFT | RIGHT |
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-2017 eyeo GmbH | 3 * Copyright (C) 2006-2017 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 |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 | 213 |
214 std::string Resolve(const std::string& path) const override | 214 std::string Resolve(const std::string& path) const override |
215 { | 215 { |
216 return path; | 216 return path; |
217 } | 217 } |
218 public: | 218 public: |
219 Scheduler scheduler; | 219 Scheduler scheduler; |
220 }; | 220 }; |
221 | 221 |
222 AdblockPlus::FilterEnginePtr CreateFilterEngine(LazyFileSystem& fileSystem, | 222 AdblockPlus::FilterEnginePtr CreateFilterEngine(LazyFileSystem& fileSystem, |
223 AdblockPlus::Platform& paltform, | 223 AdblockPlus::Platform& platform, |
224 const AdblockPlus::FilterEngine::CreationParameters& creationParams = AdblockP
lus::FilterEngine::CreationParameters()); | 224 const AdblockPlus::FilterEngine::CreationParameters& creationParams = AdblockP
lus::FilterEngine::CreationParameters()); |
225 | 225 |
226 class NoopWebRequest : public AdblockPlus::IWebRequest | 226 class NoopWebRequest : public AdblockPlus::IWebRequest |
227 { | 227 { |
228 public: | 228 public: |
229 void GET(const std::string& url, const AdblockPlus::HeaderList& requestHeaders
, const GetCallback& callback) override | 229 void GET(const std::string& url, const AdblockPlus::HeaderList& requestHeaders
, const GetCallback& callback) override |
230 { | 230 { |
231 } | 231 } |
232 }; | 232 }; |
233 | 233 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 protected: | 267 protected: |
268 std::unique_ptr<AdblockPlus::Platform> platform; | 268 std::unique_ptr<AdblockPlus::Platform> platform; |
269 | 269 |
270 virtual void SetUp() | 270 virtual void SetUp() |
271 { | 271 { |
272 platform.reset(new AdblockPlus::Platform(ThrowingPlatformCreationParameters(
))); | 272 platform.reset(new AdblockPlus::Platform(ThrowingPlatformCreationParameters(
))); |
273 } | 273 } |
274 }; | 274 }; |
275 | 275 |
276 #endif | 276 #endif |
LEFT | RIGHT |