1# Copyright 2010-2018, Google Inc. 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: 7# 8# * Redistributions of source code must retain the above copyright 9# notice, this list of conditions and the following disclaimer. 10# * Redistributions in binary form must reproduce the above 11# copyright notice, this list of conditions and the following disclaimer 12# in the documentation and/or other materials provided with the 13# distribution. 14# * Neither the name of Google Inc. nor the names of its 15# contributors may be used to endorse or promote products derived from 16# this software without specific prior written permission. 17# 18# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 30{ 31 'variables': { 32 'relative_dir': 'dictionary', 33 'gen_out_dir': '<(SHARED_INTERMEDIATE_DIR)/<(relative_dir)', 34 }, 35 'targets': [ 36 { 37 'target_name': 'dictionary_test', 38 'type': 'executable', 39 'sources': [ 40 'dictionary_impl_test.cc', 41 'dictionary_mock_test.cc', 42 'suffix_dictionary_test.cc', 43 'user_dictionary_importer_test.cc', 44 'user_dictionary_session_handler_test.cc', 45 'user_dictionary_session_test.cc', 46 'user_dictionary_storage_test.cc', 47 'user_dictionary_test.cc', 48 'user_dictionary_util_test.cc', 49 'user_pos_test.cc', 50 ], 51 'dependencies': [ 52 '../base/base.gyp:base', 53 '../config/config.gyp:config_handler', 54 '../data_manager/testing/mock_data_manager.gyp:mock_data_manager', 55 '../testing/testing.gyp:gtest_main', 56 '../testing/testing.gyp:mozctest', 57 '../testing/testing.gyp:testing_util', 58 '../usage_stats/usage_stats_base.gyp:usage_stats', 59 '../usage_stats/usage_stats_test.gyp:usage_stats_testing_util', 60 'dictionary.gyp:dictionary', 61 'dictionary.gyp:dictionary_mock', 62 'dictionary.gyp:dictionary_test_util', 63 'dictionary_base.gyp:pos_matcher', 64 'dictionary_base.gyp:user_dictionary', 65 'dictionary_base.gyp:user_pos', 66 ], 67 'variables': { 68 'test_size': 'small', 69 }, 70 }, 71 { 72 'target_name': 'suppression_dictionary_test', 73 'type': 'executable', 74 'sources': [ 75 'suppression_dictionary_test.cc', 76 ], 77 'dependencies': [ 78 '../base/base.gyp:base', 79 '../testing/testing.gyp:gtest_main', 80 'dictionary_base.gyp:suppression_dictionary', 81 ], 82 'variables': { 83 'test_size': 'small', 84 }, 85 }, 86 { 87 'target_name': 'text_dictionary_loader_test', 88 'type': 'executable', 89 'sources': [ 90 'text_dictionary_loader_test.cc', 91 ], 92 'dependencies': [ 93 '../base/base.gyp:base', 94 '../data_manager/testing/mock_data_manager.gyp:mock_data_manager', 95 '../testing/testing.gyp:gtest_main', 96 'dictionary_base.gyp:text_dictionary_loader', 97 ], 98 'variables': { 99 'test_size': 'small', 100 }, 101 }, 102 # Test cases meta target: this target is referred from gyp/tests.gyp 103 { 104 'target_name': 'dictionary_all_test', 105 'type': 'none', 106 'dependencies': [ 107 'dictionary_test', 108 'suppression_dictionary_test', 109 'text_dictionary_loader_test', 110 ], 111 }, 112 ], 113} 114