Project import generated by Copybara.

GitOrigin-RevId: 6f964e58d874e47fb6207aa97d060a4cd6428527
This commit is contained in:
MediaPipe Team
2020-03-02 10:35:07 -08:00
committed by jqtang
parent de4fbc10e6
commit 252a5713c7
134 changed files with 16665 additions and 874 deletions
+2 -2
View File
@@ -245,9 +245,9 @@ REGISTER_CALCULATOR(ErrorCalculator);
[self waitForExpectationsWithTimeout:3.0 handler:NULL];
XCTAssertNotNil(error);
status = error.gus_status;
XCTAssertNotEqual(status.error_message().find(kExpectedError), std::string::npos,
XCTAssertNotEqual(status.message().find(kExpectedError), std::string::npos,
@"Missing expected std::string '%s' from error messge '%s'", kExpectedError,
status.error_message().c_str());
status.message().data());
}
- (void)testSetStreamHeader {
+2 -2
View File
@@ -30,7 +30,7 @@
- (NSString *)description {
return [NSString stringWithFormat:@"<%@: %p; status = %s>",
[self class], self, _status.error_message().c_str()];
[self class], self, _status.message().data()];
}
@end
@@ -42,7 +42,7 @@ NSString *const kGUSGoogleUtilStatusErrorKey = @"GUSGoogleUtilStatusErrorKey";
+ (NSError *)gus_errorWithStatus:(const ::mediapipe::Status &)status {
NSDictionary *userInfo = @{
NSLocalizedDescriptionKey : @(status.error_message().c_str()),
NSLocalizedDescriptionKey : @(status.message().data()),
kGUSGoogleUtilStatusErrorKey : [GUSUtilStatusWrapper wrapStatus:status],
};
NSError *error = [NSError errorWithDomain:kGUSGoogleUtilStatusErrorDomain