Source release 17.1.0
This commit is contained in:
23
cdm/test/gtest_xctest_wrapper.mm
Normal file
23
cdm/test/gtest_xctest_wrapper.mm
Normal file
@@ -0,0 +1,23 @@
|
||||
// Copyright 2019 Google LLC. All Rights Reserved.
|
||||
|
||||
#import <XCTest/XCTest.h>
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
// Defined in cdm_test_main.cpp.
|
||||
int main(int argc, char** argv);
|
||||
|
||||
@interface GtestTests : XCTestCase
|
||||
@end
|
||||
|
||||
@implementation GtestTests
|
||||
|
||||
- (void)testAll {
|
||||
testing::GTEST_FLAG(filter) = GTEST_FILTER;
|
||||
|
||||
char arg0[] = "tests";
|
||||
char* argv[] = {arg0, nullptr};
|
||||
XCTAssertEqual(main(1, argv), 0);
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user