21 lines
662 B
C++
21 lines
662 B
C++
// Copyright 2018 Google LLC. All Rights Reserved. This file and proprietary
|
|
// source code may only be used and distributed under the Widevine License
|
|
// Agreement.
|
|
|
|
// Use in place of the gtest_main in order to initialize the WvCdmTestBase using
|
|
// command line parameters.
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include "log.h"
|
|
#include "test_base.h"
|
|
|
|
int main(int argc, char** argv) {
|
|
if (!wvcdm::WvCdmTestBase::Initialize(argc, argv)) return 1;
|
|
::testing::InitGoogleTest(&argc, argv);
|
|
const int status = RUN_ALL_TESTS();
|
|
LOGD("CDM test complete with status %d", status);
|
|
exit(status); // Explicit call to exit() is required for code coverage.
|
|
return status;
|
|
}
|