// File: /workspace/github_cpp_makefile_star2_O2/MarkOates[P]file-downloader/test_file_downloader.cpp
// Function: FileDownloader_will_set_an_error_status_when_a_file_url_does_not_exist_invoker()
BOOST_AUTO_TEST_CASE(FileDownloader_will_set_an_error_status_when_a_file_url_does_not_exist)
{
   std::string file_url = "https://www.allegro.cc/this_file_does_not_exist.png";
   std::string local_filename = "";
   FileDownloader::FileHandle handle = FileDownloader::download_file(file_url, local_filename);

   BOOST_CHECK_EQUAL(FileDownloader::ERROR, handle.get_status());
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x240, %rsp            # imm = 0x240
movq 0x7338(%rip), %rbx      # 0xd1e0
leaq 0x32c9(%rip), %r15      # 0x9178
movq %r15, -0x70(%rbp)
leaq 0x32d6(%rip), %r12      # 0x9190
movq %r12, -0x68(%rbp)
leaq -0x208(%rbp), %r14
movl $0x198, %edx            # imm = 0x198
movq %r14, %rdi
xorl %esi, %esi
callq 0x3120
movq %r14, %rdi
callq 0x7a9a
pushq $0x22
popq %rsi
movq %r14, %rdi
callq 0x3200
leaq 0x354b(%rip), %rsi      # 0x9439
leaq -0x208(%rbp), %rdi
callq 0x31b0
leaq 0x36e9(%rip), %rsi      # 0x95ea
leaq -0x208(%rbp), %rdi
callq 0x31b0
leaq -0x208(%rbp), %rdi
callq 0x7acc
movq (%rax), %rdx
leaq -0x258(%rbp), %rcx
movq %rdx, (%rcx)
addq 0x8(%rax), %rdx
movq %rdx, 0x8(%rcx)
leaq -0x70(%rbp), %rsi
pushq $0x53
popq %rdx
movq %rbx, %rdi
callq 0x30f0
leaq -0x208(%rbp), %rdi
callq 0x7b10
movq 0x7290(%rip), %rbx      # 0xd1e0
movq %r15, -0x60(%rbp)
movq %r12, -0x58(%rbp)
movl $0x198, %edx            # imm = 0x198
movq %r14, %rdi
xorl %esi, %esi
callq 0x3120
movq %r14, %rdi
callq 0x7a9a
pushq $0x22
popq %rsi
movq %r14, %rdi
callq 0x3200
leaq 0x34b8(%rip), %rsi      # 0x9439
leaq -0x208(%rbp), %rdi
callq 0x31b0
leaq 0x3665(%rip), %rsi      # 0x95f9
leaq -0x208(%rbp), %rdi
callq 0x31b0
leaq -0x208(%rbp), %rdi
callq 0x7acc
movq (%rax), %rdx
leaq -0x248(%rbp), %rcx
movq %rdx, (%rcx)
addq 0x8(%rax), %rdx
movq %rdx, 0x8(%rcx)
leaq -0x60(%rbp), %rsi
pushq $0x53
popq %rdx
movq %rbx, %rdi
callq 0x30f0
leaq -0x208(%rbp), %rdi
callq 0x7b10
movq 0x71fd(%rip), %rbx      # 0xd1e0
movq %r15, -0x50(%rbp)
movq %r12, -0x48(%rbp)
movl $0x198, %edx            # imm = 0x198
movq %r14, %rdi
xorl %esi, %esi
callq 0x3120
movq %r14, %rdi
callq 0x7a9a
pushq $0x22
popq %rsi
movq %r14, %rdi
callq 0x3200
leaq 0x3425(%rip), %rsi      # 0x9439
leaq -0x208(%rbp), %rdi
callq 0x31b0
leaq 0x35e2(%rip), %rsi      # 0x9609
leaq -0x208(%rbp), %rdi
callq 0x31b0
leaq -0x208(%rbp), %rdi
callq 0x7acc
movq (%rax), %rdx
leaq -0x238(%rbp), %rcx
movq %rdx, (%rcx)
addq 0x8(%rax), %rdx
movq %rdx, 0x8(%rcx)
leaq -0x50(%rbp), %rsi
pushq $0x53
popq %rdx
movq %rbx, %rdi
callq 0x30f0
leaq -0x208(%rbp), %rdi
callq 0x7b10
callq 0x61ca
movq 0x7165(%rip), %rbx      # 0xd1e0
movq %r15, -0x40(%rbp)
movq %r12, -0x38(%rbp)
movl $0x198, %edx            # imm = 0x198
movq %r14, %rdi
xorl %esi, %esi
callq 0x3120
movq %r14, %rdi
callq 0x7a9a
pushq $0x22
popq %rsi
movq %r14, %rdi
callq 0x3200
leaq 0x338d(%rip), %rsi      # 0x9439
leaq -0x208(%rbp), %rdi
callq 0x31b0
leaq 0x3557(%rip), %rsi      # 0x9616
leaq -0x208(%rbp), %rdi
callq 0x31b0
leaq -0x208(%rbp), %rdi
callq 0x7acc
movq (%rax), %rdx
leaq -0x228(%rbp), %rcx
movq %rdx, (%rcx)
addq 0x8(%rax), %rdx
movq %rdx, 0x8(%rcx)
leaq -0x40(%rbp), %rsi
pushq $0x53
popq %rdx
movq %rbx, %rdi
callq 0x30f0
leaq -0x208(%rbp), %rdi
callq 0x7b10
movq 0x70d2(%rip), %rbx      # 0xd1e0
movq %r15, -0x30(%rbp)
movq %r12, -0x28(%rbp)
movl $0x198, %edx            # imm = 0x198
movq %r14, %rdi
xorl %esi, %esi
callq 0x3120
movq %r14, %rdi
callq 0x7a9a
pushq $0x22
popq %rsi
movq %r14, %rdi
callq 0x3200
leaq 0x32fa(%rip), %rsi      # 0x9439
leaq -0x208(%rbp), %rdi
callq 0x31b0
leaq 0x34d7(%rip), %rsi      # 0x9629
leaq -0x208(%rbp), %rdi
callq 0x31b0
leaq -0x208(%rbp), %rdi
callq 0x7acc
movq (%rax), %rdx
leaq -0x218(%rbp), %rcx
movq %rdx, (%rcx)
addq 0x8(%rax), %rdx
movq %rdx, 0x8(%rcx)
leaq -0x30(%rbp), %rsi
pushq $0x53
popq %rdx
movq %rbx, %rdi
callq 0x30f0
leaq -0x208(%rbp), %rdi
callq 0x7b10
addq $0x240, %rsp            # imm = 0x240
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x61b2
jmp 0x61b2
jmp 0x61b2
jmp 0x61b2
movq %rax, %rbx
leaq -0x208(%rbp), %rdi
callq 0x7b10
movq %rbx, %rdi
callq 0x31e0
nop