2016-08-06 22:40:17 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <fstream>
|
|
|
|
#include <iostream>
|
|
|
|
#include <cxxtest/TestSuite.h>
|
|
|
|
|
|
|
|
#include <helpers/path_helper.hpp>
|
2016-10-10 19:28:49 +08:00
|
|
|
#include <xlnt/workbook/workbook.hpp>
|
2016-08-06 22:40:17 +08:00
|
|
|
|
|
|
|
class test_consume_xlsx : public CxxTest::TestSuite
|
|
|
|
{
|
2016-10-10 19:28:49 +08:00
|
|
|
public:
|
|
|
|
void test_consume_password_protected()
|
|
|
|
{
|
|
|
|
#ifdef CRYPTO_ENABLED
|
|
|
|
xlnt::workbook wb;
|
2016-10-19 07:28:04 +08:00
|
|
|
wb.load(path_helper::get_data_directory("14_encrypted.xlsx"), "secret");
|
2016-10-10 19:28:49 +08:00
|
|
|
#endif
|
|
|
|
}
|
2016-08-06 22:40:17 +08:00
|
|
|
};
|