1 /* 2 * Copyright 2014 Haiku, inc. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef HTTP_TEST_H 6 #define HTTP_TEST_H 7 8 9 #include <Url.h> 10 11 #include <TestCase.h> 12 #include <TestSuite.h> 13 14 15 class HttpTest: public BTestCase { 16 public: 17 HttpTest(); 18 virtual ~HttpTest(); 19 20 void GetTest(); 21 void UploadTest(); 22 void AuthBasicTest(); 23 void AuthDigestTest(); 24 void ListenerTest(); 25 26 static void AddTests(BTestSuite& suite); 27 28 private: 29 void _AuthTest(BUrl& url); 30 31 protected: 32 BUrl fBaseUrl; 33 }; 34 35 36 class HttpsTest: public HttpTest { 37 public: 38 HttpsTest(); 39 }; 40 41 42 #endif 43