//----------------------------------------------------------------------------
//
//  ise_test_9.cpp
//
//  Authors: Joe Jarchow, Geoffrey Griffith, Joseph Kadhim, Shinya Daigaku
//           Andrew Pouzeshi
//
//  Sponsor: Tom Lookabaugh, Assistant Professor of Computer Science
//           University of Colorado
//
//  Senior Project: Team ISE (Image Selective Encryption)
//----------------------------------------------------------------------------


// This file is designed to test the ISE production code with test9.sh

#include <stdlib.h>     
#include <iostream>
#include <fstream> 
#include <string>
#include "rijndael-api-fst.h"
#include "ise.h"

using namespace std;

int main(int argc, char * argv[])
{
    /* Set_Output_File_Name Function with NULL*/

    int err = 0;
    char MyKey [] = "enterthekey";
    char MyJpeg [] = "images/ralphie.jpg";

    /* Call the constructor with only the key and the jpeg image */
    jpeg_ise encrypt_test(MyKey,MyJpeg);

    /* Set key with NULL to get error */
    err = encrypt_test.set_input_file_name(NULL);
    if (err != 0)
    {
        cout << "Test 9: set_output_file_name(NULL) correctly returned error." << endl;
    }
    else
    {
	cout << "Test 9: set_output_file_name(NULL) failed to return an error." << endl;
    }
    return 0;
}
