# Copyright 2017 Google Inc. All Rights Reserved. # # Include this in any custom unit test targets. # Does not include the test runner main. { 'sources': [ '../oec_device_features.cpp', '../oec_session_util.cpp', '../oemcrypto_session_tests_helper.cpp', '../oemcrypto_session_tests_helper.h', '../../../cdm/test/device_cert.cpp', '../../../cdm/test/device_cert.h', ], 'include_dirs': [ '../../../core/include', # log.h '../../include', '../../mock/src', # oemcrypto_key_mock.h '../', '../../../cdm/test', ], 'defines': [ 'OEMCRYPTO_TESTS', 'OEMCRYPTO_FUZZ_TESTS', ], 'libraries': [ '../../../third_party/fuzz/platforms/x86-64/libFuzzer.a', '-lpthread', # gtest ], 'dependencies': [ '../../../cdm/cdm.gyp:widevine_ce_cdm_shared', '../../../third_party/gmock.gyp:gmock', '../../../third_party/gmock.gyp:gtest', ], 'conditions': [ ['oemcrypto_stubs!=""', { 'dependencies': [ '../../stubs/stubs.gyp:oec_stubs_v<(oemcrypto_version)', ], }, { 'conditions': [ ['oemcrypto_lib==""', { 'dependencies': [ '../../mock/oec_mock.gyp:oec_mock', ], }, { 'libraries': [ '../../../third_party/fuzz/platforms/x86-64/libFuzzer.a', '<(oemcrypto_lib)', ], }], ], }], ], }