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

   BOOST_CHECK_EQUAL(true, std::ifstream(local_filename).good());

   remove(local_filename.c_str());
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x240, %rsp            # imm = 0x240
movq 0x7da8(%rip), %rbx      # 0xd1e0
leaq 0x3d39(%rip), %r15      # 0x9178
movq %r15, -0x70(%rbp)
leaq 0x3d46(%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 0x3ed4(%rip), %rsi      # 0x9352
leaq -0x208(%rbp), %rdi
callq 0x31b0
leaq 0x4159(%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 $0x37
popq %rdx
movq %rbx, %rdi
callq 0x30f0
leaq -0x208(%rbp), %rdi
callq 0x7b10
movq 0x7d00(%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 0x3e41(%rip), %rsi      # 0x9352
leaq -0x208(%rbp), %rdi
callq 0x31b0
leaq 0x40d5(%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 $0x37
popq %rdx
movq %rbx, %rdi
callq 0x30f0
leaq -0x208(%rbp), %rdi
callq 0x7b10
movq 0x7c6d(%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 0x3dae(%rip), %rsi      # 0x9352
leaq -0x208(%rbp), %rdi
callq 0x31b0
leaq 0x4052(%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 $0x37
popq %rdx
movq %rbx, %rdi
callq 0x30f0
leaq -0x208(%rbp), %rdi
callq 0x7b10
callq 0x575a
movq 0x7bd5(%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 0x3d16(%rip), %rsi      # 0x9352
leaq -0x208(%rbp), %rdi
callq 0x31b0
leaq 0x3fc7(%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 $0x37
popq %rdx
movq %rbx, %rdi
callq 0x30f0
leaq -0x208(%rbp), %rdi
callq 0x7b10
movq 0x7b42(%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 0x3c83(%rip), %rsi      # 0x9352
leaq -0x208(%rbp), %rdi
callq 0x31b0
leaq 0x3f47(%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 $0x37
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 0x5742
jmp 0x5742
jmp 0x5742
jmp 0x5742
movq %rax, %rbx
leaq -0x208(%rbp), %rdi
callq 0x7b10
movq %rbx, %rdi
callq 0x31e0
nop