| OLD | NEW |
| (Empty) |
| 1 # Copyright 2014 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 static_library("cryptauth") { | |
| 6 sources = [ | |
| 7 "cryptauth_access_token_fetcher.h", | |
| 8 "cryptauth_access_token_fetcher_impl.cc", | |
| 9 "cryptauth_access_token_fetcher_impl.h", | |
| 10 "cryptauth_api_call_flow.cc", | |
| 11 "cryptauth_api_call_flow.h", | |
| 12 "cryptauth_client.h", | |
| 13 "cryptauth_client_impl.cc", | |
| 14 "cryptauth_client_impl.h", | |
| 15 "cryptauth_device_manager.cc", | |
| 16 "cryptauth_device_manager.h", | |
| 17 "cryptauth_enroller.h", | |
| 18 "cryptauth_enroller_impl.cc", | |
| 19 "cryptauth_enroller_impl.h", | |
| 20 "cryptauth_enrollment_manager.cc", | |
| 21 "cryptauth_enrollment_manager.h", | |
| 22 "cryptauth_enrollment_utils.cc", | |
| 23 "cryptauth_enrollment_utils.h", | |
| 24 "cryptauth_gcm_manager.cc", | |
| 25 "cryptauth_gcm_manager.h", | |
| 26 "cryptauth_gcm_manager_impl.cc", | |
| 27 "cryptauth_gcm_manager_impl.h", | |
| 28 "pref_names.cc", | |
| 29 "pref_names.h", | |
| 30 "secure_message_delegate.cc", | |
| 31 "secure_message_delegate.h", | |
| 32 "switches.cc", | |
| 33 "switches.h", | |
| 34 "sync_scheduler.cc", | |
| 35 "sync_scheduler.h", | |
| 36 "sync_scheduler_impl.cc", | |
| 37 "sync_scheduler_impl.h", | |
| 38 ] | |
| 39 | |
| 40 deps = [ | |
| 41 "//base", | |
| 42 "//components/gcm_driver", | |
| 43 "//components/gcm_driver/common", | |
| 44 "//components/prefs", | |
| 45 "//components/proximity_auth/logging", | |
| 46 "//crypto", | |
| 47 "//google_apis", | |
| 48 "//net", | |
| 49 ] | |
| 50 | |
| 51 public_deps = [ | |
| 52 "//components/proximity_auth/cryptauth/proto", | |
| 53 ] | |
| 54 } | |
| 55 | |
| 56 static_library("test_support") { | |
| 57 testonly = true | |
| 58 | |
| 59 sources = [ | |
| 60 "fake_cryptauth_gcm_manager.cc", | |
| 61 "fake_cryptauth_gcm_manager.h", | |
| 62 "fake_secure_message_delegate.cc", | |
| 63 "fake_secure_message_delegate.h", | |
| 64 "mock_cryptauth_client.cc", | |
| 65 "mock_cryptauth_client.h", | |
| 66 "mock_sync_scheduler.cc", | |
| 67 "mock_sync_scheduler.h", | |
| 68 ] | |
| 69 | |
| 70 public_deps = [ | |
| 71 ":cryptauth", | |
| 72 "//components/proximity_auth/cryptauth/proto", | |
| 73 ] | |
| 74 | |
| 75 deps = [ | |
| 76 "//base", | |
| 77 "//testing/gmock", | |
| 78 ] | |
| 79 } | |
| 80 | |
| 81 source_set("unit_tests") { | |
| 82 testonly = true | |
| 83 sources = [ | |
| 84 "cryptauth_access_token_fetcher_impl_unittest.cc", | |
| 85 "cryptauth_api_call_flow_unittest.cc", | |
| 86 "cryptauth_client_impl_unittest.cc", | |
| 87 "cryptauth_device_manager_unittest.cc", | |
| 88 "cryptauth_enroller_impl_unittest.cc", | |
| 89 "cryptauth_enrollment_manager_unittest.cc", | |
| 90 "cryptauth_gcm_manager_impl_unittest.cc", | |
| 91 "fake_secure_message_delegate_unittest.cc", | |
| 92 "sync_scheduler_impl_unittest.cc", | |
| 93 ] | |
| 94 | |
| 95 deps = [ | |
| 96 ":cryptauth", | |
| 97 ":test_support", | |
| 98 "//base/test:test_support", | |
| 99 "//components/gcm_driver:test_support", | |
| 100 "//components/prefs:test_support", | |
| 101 "//components/proximity_auth", | |
| 102 "//google_apis:test_support", | |
| 103 "//net:test_support", | |
| 104 "//testing/gtest", | |
| 105 ] | |
| 106 } | |
| OLD | NEW |