27 lines
614 B
Plaintext
27 lines
614 B
Plaintext
// Copyright 2022 Google LLC. All Rights Reserved. This file and proprietary
|
|
// source code may only be used and distributed under the Widevine License
|
|
// Agreement.
|
|
|
|
#include <gtest/gtest.h>
|
|
#import <XCTest/XCTest.h>
|
|
|
|
#include "cdm.h"
|
|
#include "perf_test.h"
|
|
|
|
@interface GtestTests : XCTestCase
|
|
@end
|
|
|
|
@implementation GtestTests
|
|
|
|
- (void)testAll {
|
|
testing::GTEST_FLAG(filter) = GTEST_FILTER;
|
|
char arg0[] = "tests";
|
|
char* argv[] = {arg0, nullptr};
|
|
int argc = 1;
|
|
testing::InitGoogleTest(&argc, argv);
|
|
|
|
XCTAssertEqual(widevine::PerfTestMain(&widevine::Cdm::initialize, &widevine::Cdm::create), 0);
|
|
}
|
|
|
|
@end
|