mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 12:11:15 -06:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
	
		
			495 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
	
		
			495 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #include <catch_main.hpp>
 | |
| 
 | |
| #include "slic3r/Utils/Http.hpp"
 | |
| 
 | |
| TEST_CASE("Http", "[Http][NotWorking]") {
 | |
|     
 | |
|     Slic3r::Http g = Slic3r::Http::get("https://github.com/");
 | |
|     
 | |
|     unsigned status = 0;
 | |
|     g.on_error([&status](std::string, std::string, unsigned http_status) {
 | |
|         status = http_status;
 | |
|     });
 | |
|     
 | |
|     g.on_complete([&status](std::string /* body */, unsigned http_status){
 | |
|         status = http_status;
 | |
|     });
 | |
|     
 | |
|     g.perform_sync();
 | |
|     
 | |
|     REQUIRE(status == 200);
 | |
| }
 | |
| 
 | 
