OLD | NEW |
(Empty) | |
| 1 # Copyright 2016 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 if (is_android) { |
| 6 import("//build/config/android/config.gni") |
| 7 import("//build/config/android/rules.gni") |
| 8 } |
| 9 |
| 10 source_set("session") { |
| 11 visibility = [ |
| 12 "//blimp/client/*", |
| 13 "//blimp/engine:browser_tests", |
| 14 ] |
| 15 |
| 16 sources = [ |
| 17 "assignment_source.cc", |
| 18 "assignment_source.h", |
| 19 ] |
| 20 |
| 21 public_deps = [ |
| 22 "//base", |
| 23 "//components/safe_json", |
| 24 "//net", |
| 25 "//url", |
| 26 ] |
| 27 |
| 28 deps = [ |
| 29 "//blimp/client/core:switches", |
| 30 "//blimp/common", |
| 31 ] |
| 32 } |
| 33 |
| 34 source_set("unit_tests") { |
| 35 visibility = [ "//blimp/client/core:unit_tests" ] |
| 36 |
| 37 testonly = true |
| 38 |
| 39 sources = [] |
| 40 |
| 41 deps = [] |
| 42 |
| 43 data = [] |
| 44 |
| 45 # TODO(dtrainor): Fix the test harness to allow this to run on Android. |
| 46 # See crbug.com/588240. |
| 47 if (is_linux) { |
| 48 sources += [ "assignment_source_unittest.cc" ] |
| 49 |
| 50 deps += [ |
| 51 ":session", |
| 52 "//base", |
| 53 "//blimp/client/core:switches", |
| 54 "//blimp/common", |
| 55 "//blimp/common:test_support", |
| 56 "//components/safe_json:test_support", |
| 57 "//net:test_support", |
| 58 "//testing/gmock", |
| 59 "//testing/gtest", |
| 60 "//url", |
| 61 ] |
| 62 |
| 63 data += [ |
| 64 "test_selfsigned_cert.pem", |
| 65 "//blimp/test/data/test_client_token", |
| 66 ] |
| 67 } |
| 68 } |
| 69 |
| 70 if (is_android) { |
| 71 java_cpp_enum("java_enums_srcjar") { |
| 72 visibility = [ "//blimp/client/*" ] |
| 73 |
| 74 sources = [ |
| 75 "assignment_source.h", |
| 76 ] |
| 77 } |
| 78 } |
OLD | NEW |