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

Side by Side Diff: test/BaseJsTest.h

Issue 29442632: Noissue - remove dead code (Closed) Base URL: https://github.com/adblockplus/libadblockplus.git
Patch Set: Created May 19, 2017, 4:57 p.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 | « 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 /* 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 throw std::runtime_error("Not implemented"); 130 throw std::runtime_error("Not implemented");
131 } 131 }
132 132
133 std::string Resolve(const std::string& path) const 133 std::string Resolve(const std::string& path) const
134 { 134 {
135 throw std::runtime_error("Not implemented"); 135 throw std::runtime_error("Not implemented");
136 } 136 }
137 137
138 }; 138 };
139 139
140 class ThrowingWebRequest : public AdblockPlus::IWebRequest, public AdblockPlus:: WebRequest 140 class ThrowingWebRequest : public AdblockPlus::IWebRequest
141 { 141 {
142 public: 142 public:
143 AdblockPlus::ServerResponse GET(const std::string& url, const AdblockPlus::Hea derList& requestHeaders) const override
144 {
145 throw std::runtime_error("Unexpected GET: " + url);
146 }
147 void GET(const std::string& url, const AdblockPlus::HeaderList& requestHeaders , const GetCallback&) override 143 void GET(const std::string& url, const AdblockPlus::HeaderList& requestHeaders , const GetCallback&) override
148 { 144 {
149 throw std::runtime_error("Unexpected GET: " + url); 145 throw std::runtime_error("Unexpected GET: " + url);
150 } 146 }
151 }; 147 };
152 148
153 class LazyFileSystem : public AdblockPlus::FileSystem 149 class LazyFileSystem : public AdblockPlus::FileSystem
154 { 150 {
155 public: 151 public:
156 std::shared_ptr<std::istream> Read(const std::string& path) const 152 std::shared_ptr<std::istream> Read(const std::string& path) const
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 protected: 240 protected:
245 AdblockPlus::JsEnginePtr jsEngine; 241 AdblockPlus::JsEnginePtr jsEngine;
246 242
247 virtual void SetUp() 243 virtual void SetUp()
248 { 244 {
249 jsEngine = CreateJsEngine(); 245 jsEngine = CreateJsEngine();
250 } 246 }
251 }; 247 };
252 248
253 #endif 249 #endif
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