| # Copyright 2014 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| source_set("copresence") { |
| sources = [ |
| "copresence_manager_impl.cc", |
| "copresence_state_impl.cc", |
| "copresence_state_impl.h", |
| "copresence_switches.cc", |
| "copresence_switches.h", |
| "handlers/audio/audio_directive_handler.h", |
| "handlers/audio/audio_directive_handler_impl.cc", |
| "handlers/audio/audio_directive_handler_impl.h", |
| "handlers/audio/audio_directive_list.cc", |
| "handlers/audio/audio_directive_list.h", |
| "handlers/audio/tick_clock_ref_counted.cc", |
| "handlers/audio/tick_clock_ref_counted.h", |
| "handlers/directive_handler.h", |
| "handlers/directive_handler_impl.cc", |
| "handlers/directive_handler_impl.h", |
| "handlers/gcm_handler.h", |
| "handlers/gcm_handler_impl.cc", |
| "handlers/gcm_handler_impl.h", |
| "public/copresence_constants.h", |
| "public/copresence_delegate.h", |
| "public/copresence_manager.h", |
| "public/copresence_observer.h", |
| "public/copresence_state.h", |
| "rpc/http_post.cc", |
| "rpc/http_post.h", |
| "rpc/rpc_handler.cc", |
| "rpc/rpc_handler.h", |
| "timed_map.h", |
| "tokens.cc", |
| "tokens.h", |
| ] |
| |
| deps = [ |
| "//base", |
| "//components/audio_modem", |
| "//components/copresence/proto", |
| "//components/gcm_driver", |
| "//google_apis", |
| "//media", |
| "//media:shared_memory_support", |
| "//net", |
| ] |
| } |
| |
| source_set("test_support") { |
| testonly = true |
| sources = [ |
| "test/fake_directive_handler.cc", |
| "test/fake_directive_handler.h", |
| ] |
| public_deps = [ |
| ":copresence", |
| "//base", |
| "//components/copresence/proto", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| sources = [ |
| "copresence_state_unittest.cc", |
| "handlers/audio/audio_directive_handler_unittest.cc", |
| "handlers/audio/audio_directive_list_unittest.cc", |
| "handlers/directive_handler_unittest.cc", |
| "handlers/gcm_handler_unittest.cc", |
| "rpc/http_post_unittest.cc", |
| "rpc/rpc_handler_unittest.cc", |
| "timed_map_unittest.cc", |
| ] |
| deps = [ |
| ":test_support", |
| "//base", |
| "//base/test:test_support", |
| "//components/audio_modem:test_support", |
| "//components/copresence/proto", |
| "//components/gcm_driver:test_support", |
| "//net:test_support", |
| "//testing/gmock", |
| "//testing/gtest", |
| ] |
| } |