Source release v3.5.0
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include <getopt.h>
|
||||
#include <gtest/gtest.h>
|
||||
#include <time.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#if defined(__linux__)
|
||||
#include <sys/utsname.h>
|
||||
@@ -13,6 +14,7 @@
|
||||
#include "device_cert.h"
|
||||
#include "override.h"
|
||||
#include "test_host.h"
|
||||
#include "test_keybox.h"
|
||||
|
||||
#if defined(OEMCRYPTO_TESTS)
|
||||
# include "oec_device_features.h"
|
||||
@@ -45,6 +47,23 @@ int main(int argc, char** argv) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
{
|
||||
FILE* outfile;
|
||||
outfile = fopen("danger_do_not_use.bin", "w");
|
||||
if (outfile == NULL) { return 0; }
|
||||
if (fwrite(wvcdm_test_auth::kKeybox, 1,
|
||||
wvcdm_test_auth::kKeyboxSize, outfile) != 128) {
|
||||
fclose(outfile);
|
||||
return 0;
|
||||
}
|
||||
if (fwrite(wvcdm_test_auth::kKeyboxValid02, 1,
|
||||
wvcdm_test_auth::kKeyboxSize, outfile) != 128) {
|
||||
fclose(outfile);
|
||||
return 0;
|
||||
}
|
||||
fclose(outfile);
|
||||
}
|
||||
|
||||
// Set up a Host so that tests and initialize the library. This makes these
|
||||
// services available to the tests. We would do this in the test suite
|
||||
// itself, but the core & OEMCrypto tests don't know they depend on this
|
||||
@@ -76,7 +95,6 @@ int main(int argc, char** argv) {
|
||||
|
||||
#if defined(OEMCRYPTO_TESTS)
|
||||
// Set up the OEMCrypto test harness.
|
||||
// NOTE: This creates a temporary OEMCrypto "instance".
|
||||
wvoec::global_features.Initialize(false /* is_cast_receiver */,
|
||||
false /* force_load_test_keybox */);
|
||||
::testing::GTEST_FLAG(filter)
|
||||
|
||||
Reference in New Issue
Block a user