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

Unified Diff: test/compiled/library.cpp

Issue 29721697: Noissue - fix support of namespace, external user-config.h and debug configuration (Closed) Base URL: https://github.com/adblockplus/adblockpluscore.git@caf1800ce0342583de4c0320745f0fdb3b55bd01
Patch Set: get rid of the warning Created March 13, 2018, 6:17 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « meson.build ('k') | test/compiled/user-config-test-namespace.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « meson.build ('k') | test/compiled/user-config-test-namespace.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld