| Index: test/compiled/library.cpp |
| diff --git a/test/compiled/abptest.cpp b/test/compiled/library.cpp |
| similarity index 67% |
| copy from test/compiled/abptest.cpp |
| copy to test/compiled/library.cpp |
| index 3f96d2c60fad636de9a45d3ee346ffccefcf3cce..8a89ebef1e9c6a6e721e84eb0d21ce13110bb7cd 100644 |
| --- a/test/compiled/abptest.cpp |
| +++ b/test/compiled/library.cpp |
| @@ -15,11 +15,28 @@ |
| * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
| */ |
| -#include <gtest/gtest.h> |
| +#include <iostream> |
| +#include "compiled/library.h" |
| #include "compiled/String.h" |
| -int main(int argc, char **argv) |
| +ABP_NS_USING |
| + |
| +void LogString(const String& value) |
| +{ |
| + std::cout << value << std::endl; |
| +} |
| + |
| +void LogInteger(int value) |
| +{ |
| + std::cout << value << std::endl; |
| +} |
| + |
| +void LogPointer(const void* value) |
| +{ |
| + std::cout << value << std::endl; |
| +} |
| + |
| +void LogError(const String& value) |
| { |
| - ::testing::InitGoogleTest(&argc, argv); |
| - return RUN_ALL_TESTS(); |
| + std::cerr << value << std::endl; |
| } |