Mercurial > hg > orthanc
comparison UnitTests/main.cpp @ 29:042ac60f5bf9
simplified build of curl
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 29 Aug 2012 15:27:13 +0200 |
parents | 6ba765ecf3db |
children | a15e90e5d6fc |
comparison
equal
deleted
inserted
replaced
28:ef264c1e9ee5 | 29:042ac60f5bf9 |
---|---|
271 ASSERT_EQ("", Toolbox::EncodeBase64("")); | 271 ASSERT_EQ("", Toolbox::EncodeBase64("")); |
272 ASSERT_EQ("YQ==", Toolbox::EncodeBase64("a")); | 272 ASSERT_EQ("YQ==", Toolbox::EncodeBase64("a")); |
273 ASSERT_EQ("SGVsbG8gd29ybGQ=", Toolbox::EncodeBase64("Hello world")); | 273 ASSERT_EQ("SGVsbG8gd29ybGQ=", Toolbox::EncodeBase64("Hello world")); |
274 } | 274 } |
275 | 275 |
276 TEST(tutu, tata) | |
277 { | |
278 HttpClient c; | |
279 c.SetUrl("https://localhost:8000/instances"); | |
280 std::string s; | |
281 ASSERT_TRUE(c.Apply(s)); | |
282 } | |
283 | |
284 | |
285 int main(int argc, char **argv) | 276 int main(int argc, char **argv) |
286 { | 277 { |
287 PalantirInitialize(); | 278 PalantirInitialize(); |
288 ::testing::InitGoogleTest(&argc, argv); | 279 ::testing::InitGoogleTest(&argc, argv); |
289 int result = RUN_ALL_TESTS(); | 280 int result = RUN_ALL_TESTS(); |