Cherry pick 18.4 changes to udc-widevine-dev
Get the udc-widevine-dev Android branch and oemcrypto-v18 cdm branch in sync. The commit ID for 18.4 on oemcrypto-v18 is a2f23a2281e5e06dc2867585bdc516fa132b6396. Merged from go/wvgerrit/190151 Bug: 290252845 Test: WVTS tests are running and passing Change-Id: I457332e7ca70a5b5169345e1279b3eb9f18413b6
This commit is contained in:
26
libwvdrmengine/cdm/test/perf_test_xctest.mm
Normal file
26
libwvdrmengine/cdm/test/perf_test_xctest.mm
Normal file
@@ -0,0 +1,26 @@
|
||||
// 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
|
||||
Reference in New Issue
Block a user