forked from mrtazz/restclient-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtests.cpp
More file actions
26 lines (22 loc) · 660 Bytes
/
tests.cpp
File metadata and controls
26 lines (22 loc) · 660 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include <iostream>
#include <gtest/gtest.h>
#include "tests.h"
// Define shared constants
namespace RestClient
{
std::string TestNonExistantUrl;
std::string TestServer;
std::string TestUrl;
std::string TestProxyUrl;
};
int main(int argc, char **argv)
{
// Initialize shared constants
// Ports below should match what is set in Makefile.in
RestClient::TestNonExistantUrl = "http://nonexistent";
RestClient::TestServer = "127.0.0.1:8998";
RestClient::TestUrl = "http://" + RestClient::TestServer;
RestClient::TestProxyUrl = "http://127.0.0.1:3128";
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}