Page Menu
Home
Xreate
Search
Configure Global Search
Log In
Docs
Questions
Repository
Issues
Patches
Internal API
Files
F4823530
main.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Aug 25, 12:14 AM
Size
935 B
Mime Type
text/x-c++
Expires
Thu, Aug 27, 12:14 AM (1 d, 4 h)
Engine
blob
Format
Raw Data
Handle
283000
Attached To
rXR Xreate
main.cpp
View Options
#include <gtest/gtest.h>
#include <QCoreApplication>
#include "phrictionclient.h"
using namespace std;
TEST(Phriction, test1){
QString uri("http://127.0.01:8081");
QString user("pgess");
QString token("api-pygm46avv2si6biyun5cmuhqr3xr");
QString certificate("bjuun7um2coedcypcp34sx5q2whizfo2e5ek25emh2imt3zki3romj4tm3zmsq6cibyrh7ocndup77v7dsqapjodgb3vkrjtjbhn657raz7jrulhhfov3byrx3ixd35g5tcgtfijouifwgnk3cdh72csdzcjoouidlfiujig7awvsvv7x2f3wakdw2xigenqc7f677aqimbaaa5ayspoeeqt74dhswagljydfmwnadz2sr3bpej6b7avmrl7myb");
PhrictionClient phriction(uri, user, token, certificate);
ASSERT_TRUE(phriction.publishDocument("/", "Manual", "manual", ""));
// ASSERT_TRUE(phriction.publishDocument("/one", "One", "one", ""));
}
int main(int argc, char **argv) {
testing::GTEST_FLAG(color) = "yes";
testing::InitGoogleTest(&argc, argv);
QCoreApplication core(argc, argv);
return RUN_ALL_TESTS();
}
Event Timeline
Log In to Comment