// File: 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
subq $0x9c0, %rsp            # imm = 0x9C0
movq 0xcf9e(%rip), %rax      # 0x15280
movq %rax, -0x8e8(%rbp)
leaq 0x6e85(%rip), %rsi      # 0xf175
leaq -0x10(%rbp), %rdi
movl $0x18, %edx
callq 0xa680
leaq -0x1b8(%rbp), %rdi
movq %rdi, -0x8e0(%rbp)
xorl %esi, %esi
movl $0x198, %edx            # imm = 0x198
callq 0x3180
movq -0x8e0(%rbp), %rdi
callq 0xb9c0
movq -0x8e0(%rbp), %rdi
callq 0xb9f0
movq %rax, %rdi
movb $0x22, -0x1b9(%rbp)
leaq -0x1b9(%rbp), %rsi
callq 0xb980
movq %rax, -0x8d8(%rbp)
jmp 0x834f
movq -0x8d8(%rbp), %rdi
leaq 0x70d9(%rip), %rsi      # 0xf436
callq 0xbf60
movq %rax, -0x8f0(%rbp)
jmp 0x836b
movq -0x8f0(%rbp), %rdi
leaq 0x726e(%rip), %rsi      # 0xf5e7
callq 0xb920
movq %rax, -0x8f8(%rbp)
jmp 0x8387
movq -0x8f8(%rbp), %rdi
callq 0xba00
movq %rax, -0x900(%rbp)
jmp 0x839c
movq -0x900(%rbp), %rsi
leaq -0x20(%rbp), %rdi
callq 0xb8c0
jmp 0x83ae
movq -0x8e8(%rbp), %rdi
leaq -0x10(%rbp), %rsi
movl $0x53, %edx
leaq -0x20(%rbp), %rcx
callq 0x3130
jmp 0x83c9
leaq -0x1b8(%rbp), %rdi
callq 0xba50
movq 0xcea4(%rip), %rax      # 0x15280
movq %rax, -0x918(%rbp)
leaq 0x6d8b(%rip), %rsi      # 0xf175
leaq -0x1e0(%rbp), %rdi
movl $0x18, %edx
callq 0xa680
leaq -0x388(%rbp), %rdi
movq %rdi, -0x910(%rbp)
xorl %esi, %esi
movl $0x198, %edx            # imm = 0x198
callq 0x3180
movq -0x910(%rbp), %rdi
callq 0xb9c0
movq -0x910(%rbp), %rdi
callq 0xb9f0
movq %rax, %rdi
movb $0x22, -0x389(%rbp)
leaq -0x389(%rbp), %rsi
callq 0xb980
movq %rax, -0x908(%rbp)
jmp 0x844c
movq -0x908(%rbp), %rdi
leaq 0x6fdc(%rip), %rsi      # 0xf436
callq 0xbf60
movq %rax, -0x920(%rbp)
jmp 0x8468
movq -0x920(%rbp), %rdi
leaq 0x7180(%rip), %rsi      # 0xf5f6
callq 0xba80
movq %rax, -0x928(%rbp)
jmp 0x8484
movq -0x928(%rbp), %rdi
callq 0xba00
movq %rax, -0x930(%rbp)
jmp 0x8499
movq -0x930(%rbp), %rsi
leaq -0x1f0(%rbp), %rdi
callq 0xb8c0
jmp 0x84ae
movq -0x918(%rbp), %rdi
leaq -0x1e0(%rbp), %rsi
movl $0x53, %edx
leaq -0x1f0(%rbp), %rcx
callq 0x3130
jmp 0x84cf
leaq -0x388(%rbp), %rdi
callq 0xba50
leaq -0x1cd(%rbp), %rdi
callq 0xbf90
movq 0xcd92(%rip), %rax      # 0x15280
movq %rax, -0x948(%rbp)
leaq 0x6c79(%rip), %rsi      # 0xf175
leaq -0x3a0(%rbp), %rdi
movl $0x18, %edx
callq 0xa680
leaq -0x548(%rbp), %rdi
movq %rdi, -0x940(%rbp)
xorl %esi, %esi
movl $0x198, %edx            # imm = 0x198
callq 0x3180
movq -0x940(%rbp), %rdi
callq 0xb9c0
movq -0x940(%rbp), %rdi
callq 0xb9f0
movq %rax, %rdi
movb $0x22, -0x549(%rbp)
leaq -0x549(%rbp), %rsi
callq 0xb980
movq %rax, -0x938(%rbp)
jmp 0x855e
movq -0x938(%rbp), %rdi
leaq 0x6eca(%rip), %rsi      # 0xf436
callq 0xbf60
movq %rax, -0x950(%rbp)
jmp 0x857a
movq -0x950(%rbp), %rdi
leaq 0x707e(%rip), %rsi      # 0xf606
callq 0xbad0
movq %rax, -0x958(%rbp)
jmp 0x8596
movq -0x958(%rbp), %rdi
callq 0xba00
movq %rax, -0x960(%rbp)
jmp 0x85ab
movq -0x960(%rbp), %rsi
leaq -0x3b0(%rbp), %rdi
callq 0xb8c0
jmp 0x85c0
movq -0x948(%rbp), %rdi
leaq -0x3a0(%rbp), %rsi
movl $0x53, %edx
leaq -0x3b0(%rbp), %rcx
callq 0x3130
jmp 0x85e1
leaq -0x548(%rbp), %rdi
callq 0xba50
leaq -0x1cd(%rbp), %rdi
callq 0x88d0
movq 0xcc80(%rip), %rax      # 0x15280
movq %rax, -0x978(%rbp)
leaq 0x6b67(%rip), %rsi      # 0xf175
leaq -0x560(%rbp), %rdi
movl $0x18, %edx
callq 0xa680
leaq -0x708(%rbp), %rdi
movq %rdi, -0x970(%rbp)
xorl %esi, %esi
movl $0x198, %edx            # imm = 0x198
callq 0x3180
movq -0x970(%rbp), %rdi
callq 0xb9c0
movq -0x970(%rbp), %rdi
callq 0xb9f0
movq %rax, %rdi
movb $0x22, -0x709(%rbp)
leaq -0x709(%rbp), %rsi
callq 0xb980
movq %rax, -0x968(%rbp)
jmp 0x8670
movq -0x968(%rbp), %rdi
leaq 0x6db8(%rip), %rsi      # 0xf436
callq 0xbf60
movq %rax, -0x980(%rbp)
jmp 0x868c
movq -0x980(%rbp), %rdi
leaq 0x6f79(%rip), %rsi      # 0xf613
callq 0xbb00
movq %rax, -0x988(%rbp)
jmp 0x86a8
movq -0x988(%rbp), %rdi
callq 0xba00
movq %rax, -0x990(%rbp)
jmp 0x86bd
movq -0x990(%rbp), %rsi
leaq -0x570(%rbp), %rdi
callq 0xb8c0
jmp 0x86d2
movq -0x978(%rbp), %rdi
leaq -0x560(%rbp), %rsi
movl $0x53, %edx
leaq -0x570(%rbp), %rcx
callq 0x3130
jmp 0x86f3
leaq -0x708(%rbp), %rdi
callq 0xba50
leaq -0x1cd(%rbp), %rdi
callq 0xbfb0
movq 0xcb6e(%rip), %rax      # 0x15280
movq %rax, -0x9a8(%rbp)
leaq 0x6a55(%rip), %rsi      # 0xf175
leaq -0x720(%rbp), %rdi
movl $0x18, %edx
callq 0xa680
leaq -0x8c8(%rbp), %rdi
movq %rdi, -0x9a0(%rbp)
xorl %esi, %esi
movl $0x198, %edx            # imm = 0x198
callq 0x3180
movq -0x9a0(%rbp), %rdi
callq 0xb9c0
movq -0x9a0(%rbp), %rdi
callq 0xb9f0
movq %rax, %rdi
movb $0x22, -0x8c9(%rbp)
leaq -0x8c9(%rbp), %rsi
callq 0xb980
movq %rax, -0x998(%rbp)
jmp 0x8782
movq -0x998(%rbp), %rdi
leaq 0x6ca6(%rip), %rsi      # 0xf436
callq 0xbf60
movq %rax, -0x9b0(%rbp)
jmp 0x879e
movq -0x9b0(%rbp), %rdi
leaq 0x6e7a(%rip), %rsi      # 0xf626
callq 0xb920
movq %rax, -0x9b8(%rbp)
jmp 0x87ba
movq -0x9b8(%rbp), %rdi
callq 0xba00
movq %rax, -0x9c0(%rbp)
jmp 0x87cf
movq -0x9c0(%rbp), %rsi
leaq -0x730(%rbp), %rdi
callq 0xb8c0
jmp 0x87e4
movq -0x9a8(%rbp), %rdi
leaq -0x720(%rbp), %rsi
movl $0x53, %edx
leaq -0x730(%rbp), %rcx
callq 0x3130
jmp 0x8805
leaq -0x8c8(%rbp), %rdi
callq 0xba50
addq $0x9c0, %rsp            # imm = 0x9C0
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1c8(%rbp)
movl %eax, -0x1cc(%rbp)
leaq -0x1b8(%rbp), %rdi
callq 0xba50
jmp 0x88b8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1c8(%rbp)
movl %eax, -0x1cc(%rbp)
leaq -0x388(%rbp), %rdi
callq 0xba50
jmp 0x88b8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1c8(%rbp)
movl %eax, -0x1cc(%rbp)
leaq -0x548(%rbp), %rdi
callq 0xba50
jmp 0x88b8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1c8(%rbp)
movl %eax, -0x1cc(%rbp)
leaq -0x708(%rbp), %rdi
callq 0xba50
jmp 0x88b8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1c8(%rbp)
movl %eax, -0x1cc(%rbp)
leaq -0x8c8(%rbp), %rdi
callq 0xba50
movq -0x1c8(%rbp), %rdi
callq 0x3260
nopw %cs:(%rax,%rax)