# Copyright 2015 Google Inc. All Rights Reserved. # # Include this in any custom unit test targets. # Does not include the test runner main. { 'sources': [ '../core/test/base64_test.cpp', '../core/test/cdm_engine_test.cpp', '../core/test/cdm_session_unittest.cpp', '../core/test/config_test_env.cpp', '../core/test/device_files_unittest.cpp', # '../core/test/generic_crypto_unittest.cpp', # currently keybox only '../core/test/http_socket.cpp', '../core/test/initialization_data_unittest.cpp', '../core/test/license_request.cpp', '../core/test/license_unittest.cpp', '../core/test/license_keys_unittest.cpp', '../core/test/policy_engine_unittest.cpp', '../core/test/policy_engine_constraints_unittest.cpp', '../core/test/test_printers.cpp', '../core/test/url_request.cpp', ], 'include_dirs': [ '../core/include', '../core/test', ], 'defines': [ 'UNIT_TEST', 'CORE_TESTS', ], 'dependencies': [ # This gypi may be included from outside this folder, and dependencies in # a gypi are relative to the gyp file doing the including. # cdm_dir is a variable the including file must set to help us find the # correct path. '<(cdm_dir)/cdm/cdm.gyp:license_protocol', ], 'conditions': [ # OpenSSL needed for http_socket ['openssl_config == "target"', { 'dependencies': [ '<(openssl_target)', ], }, { # openssl_config == "system" 'link_settings': { 'libraries': [ '-lssl', ], }, }], ], }