| OLD | NEW |
| (Empty) |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 import("//build/util/process_version.gni") | |
| 6 import("//testing/test.gni") | |
| 7 | |
| 8 component("common") { | |
| 9 output_name = "blimp_common" | |
| 10 sources = [ | |
| 11 "blimp_common_export.h", | |
| 12 "blob_cache/blob_cache.h", | |
| 13 "blob_cache/id_util.cc", | |
| 14 "blob_cache/id_util.h", | |
| 15 "blob_cache/in_memory_blob_cache.cc", | |
| 16 "blob_cache/in_memory_blob_cache.h", | |
| 17 "compositor/reference_tracker.cc", | |
| 18 "compositor/reference_tracker.h", | |
| 19 "create_blimp_message.cc", | |
| 20 "create_blimp_message.h", | |
| 21 "get_client_auth_token.cc", | |
| 22 "get_client_auth_token.h", | |
| 23 "logging.cc", | |
| 24 "logging.h", | |
| 25 "mandatory_callback.h", | |
| 26 "switches.cc", | |
| 27 "switches.h", | |
| 28 ] | |
| 29 | |
| 30 defines = [ "BLIMP_COMMON_IMPLEMENTATION=1" ] | |
| 31 | |
| 32 deps = [ | |
| 33 "//base", | |
| 34 "//cc", | |
| 35 "//crypto", | |
| 36 ] | |
| 37 | |
| 38 public_deps = [ | |
| 39 ":protocol_version", | |
| 40 "//blimp/common/proto", | |
| 41 ] | |
| 42 } | |
| 43 | |
| 44 source_set("test_support") { | |
| 45 testonly = true | |
| 46 | |
| 47 sources = [ | |
| 48 "blob_cache/mock_blob_cache.cc", | |
| 49 "blob_cache/mock_blob_cache.h", | |
| 50 "blob_cache/test_util.cc", | |
| 51 "blob_cache/test_util.h", | |
| 52 ] | |
| 53 | |
| 54 deps = [ | |
| 55 ":common", | |
| 56 "//blimp/common/proto", | |
| 57 "//testing/gmock", | |
| 58 "//testing/gtest", | |
| 59 ] | |
| 60 } | |
| 61 | |
| 62 source_set("unit_tests") { | |
| 63 testonly = true | |
| 64 | |
| 65 sources = [ | |
| 66 "blob_cache/id_util_unittest.cc", | |
| 67 "blob_cache/in_memory_blob_cache_unittest.cc", | |
| 68 "compositor/reference_tracker_unittest.cc", | |
| 69 "create_blimp_message_unittest.cc", | |
| 70 "logging_unittest.cc", | |
| 71 "mandatory_callback_unittest.cc", | |
| 72 ] | |
| 73 | |
| 74 deps = [ | |
| 75 ":common", | |
| 76 ":test_support", | |
| 77 "//base", | |
| 78 "//base/test:test_support", | |
| 79 "//blimp/common/proto", | |
| 80 "//crypto", | |
| 81 "//testing/gmock", | |
| 82 "//testing/gtest", | |
| 83 ] | |
| 84 } | |
| 85 | |
| 86 process_version("protocol_version") { | |
| 87 sources = [ | |
| 88 "//chrome/VERSION", | |
| 89 ] | |
| 90 template_file = "protocol_version.h.version" | |
| 91 output = "$target_gen_dir/protocol_version.h" | |
| 92 } | |
| OLD | NEW |