Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: test/BaseJsTest.h

Issue 29508591: Issue 5450 - don't expose std::shared_ptr<FilterEngine> (Closed) Base URL: https://github.com/adblockplus/libadblockplus.git
Patch Set: Created Aug. 7, 2017, 8:46 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/Platform.cpp ('k') | test/BaseJsTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 } 212 }
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::FilterEngine& CreateFilterEngine(LazyFileSystem& fileSystem,
223 AdblockPlus::Platform& paltform, 223 AdblockPlus::Platform& paltform,
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 };
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 } 280 }
281 281
282 void TearDown() override 282 void TearDown() override
283 { 283 {
284 if (platform) 284 if (platform)
285 platform.reset(); 285 platform.reset();
286 } 286 }
287 }; 287 };
288 288
289 #endif 289 #endif
OLDNEW
« no previous file with comments | « src/Platform.cpp ('k') | test/BaseJsTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld