Create custom gtest matcher for similar URLs.
[ Merge of http://go/wvgerrit/156997 ] Several of the Android integration tests perform direct URL comparisons between fixed URLs and the server URL returned by the CDM. With provisioning 4.0, the CDM will append additional query parameters to the server URL. This updated URL still contains all of the original expected information, but with additional parameters. So long as the URL contains the required fields, any additional parameter should be considered valid. The gtest framework used by the integration tests allow for the creation of custom "matchers", rules that can be used to validate data and create informative failure logs. The CL creates a new matcher for checking that a tested URL is a superset of content of the expected URL. Bug: 244319313 Test: request_license_test on prov 4 device Change-Id: Ie721058fa628b3a4a74dc56f4172a3dfcb1f1ef3
This commit is contained in:
@@ -108,7 +108,7 @@ adb_shell_run event_metric_unittest
|
||||
adb_shell_run file_store_unittest
|
||||
adb_shell_run file_utils_unittest
|
||||
adb_shell_run generic_crypto_unittest
|
||||
adb_shell_run hidl_metrics_adapter_unittest
|
||||
adb_shell_run hal_metrics_adapter_unittest
|
||||
adb_shell_run http_socket_test
|
||||
adb_shell_run initialization_data_unittest
|
||||
adb_shell_run libwvdrmdrmplugin_hal_test
|
||||
|
||||
Reference in New Issue
Block a user