2 # Copyright 2015 Google, Inc.
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at:
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
17 static_library("osi") {
20 "src/allocation_tracker.cc",
28 "src/hash_map_utils.cc",
30 "src/metrics_linux.cc",
39 # TODO(mcchou): Remove these sources after platform specific
40 # dependencies are abstracted.
41 "src/socket_utils/socket_local_client.cc",
42 "src/socket_utils/socket_local_server.cc",
55 "//third_party/libchrome:base",
59 executable("net_test_osi") {
62 "test/AlarmTestHarness.cc",
63 "test/AllocationTestHarness.cc",
65 "test/allocation_tracker_test.cc",
66 "test/allocator_test.cc",
68 "test/config_test.cc",
69 "test/future_test.cc",
70 "test/hash_map_utils_test.cc",
71 "test/leaky_bonded_queue_test.cc",
73 "test/properties_test.cc",
75 "test/reactor_test.cc",
76 "test/ringbuffer_test.cc",
77 "test/thread_test.cc",
88 "//third_party/googletest:gtest_main",
89 "//third_party/googletest:gmock_main",
90 "//third_party/libchrome:base",