| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//media/media_options.gni") | 5 import("//media/media_options.gni") |
| 6 | 6 |
| 7 source_set("pipeline_integration_test_base") { | 7 source_set("pipeline_integration_test_base") { |
| 8 testonly = true | 8 testonly = true |
| 9 | 9 |
| 10 if (media_use_ffmpeg) { | 10 # Even if FFmpeg is enabled on Android we don't want these. |
| 11 # TODO(watk): Refactor tests that could be made to run on Android. |
| 12 if (media_use_ffmpeg && !is_android) { |
| 11 sources = [ | 13 sources = [ |
| 12 "pipeline_integration_test_base.cc", | 14 "pipeline_integration_test_base.cc", |
| 13 "pipeline_integration_test_base.h", | 15 "pipeline_integration_test_base.h", |
| 14 ] | 16 ] |
| 15 | 17 |
| 16 deps = [ | 18 deps = [ |
| 17 "//base", | 19 "//base", |
| 18 "//media", | 20 "//media", |
| 19 "//media:test_support", | 21 "//media:test_support", |
| 20 "//media/audio:test_support", | 22 "//media/audio:test_support", |
| 21 "//media/base:test_support", | 23 "//media/base:test_support", |
| 22 "//testing/gmock", | 24 "//testing/gmock", |
| 23 "//testing/gtest", | 25 "//testing/gtest", |
| 24 ] | 26 ] |
| 25 } | 27 } |
| 26 } | 28 } |
| 27 | 29 |
| 28 source_set("pipeline_integration_tests") { | 30 source_set("pipeline_integration_tests") { |
| 29 testonly = true | 31 testonly = true |
| 30 | 32 |
| 31 if (media_use_ffmpeg) { | 33 if (media_use_ffmpeg && !is_android) { |
| 32 sources = [ | 34 sources = [ |
| 33 "pipeline_integration_test.cc", | 35 "pipeline_integration_test.cc", |
| 34 ] | 36 ] |
| 35 | 37 |
| 36 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 38 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 37 | 39 |
| 38 deps = [ | 40 deps = [ |
| 39 ":pipeline_integration_test_base", | 41 ":pipeline_integration_test_base", |
| 40 "//base", | 42 "//base", |
| 41 "//media", | 43 "//media", |
| 42 "//media:test_support", | 44 "//media:test_support", |
| 43 "//media/audio:test_support", | 45 "//media/audio:test_support", |
| 44 "//media/base:test_support", | 46 "//media/base:test_support", |
| 45 "//testing/gtest", | 47 "//testing/gtest", |
| 46 "//url", | 48 "//url", |
| 47 | 49 |
| 48 # TODO(dalecurtis): Required since the gmock header is included in the | 50 # TODO(dalecurtis): Required since the gmock header is included in the |
| 49 # header for pipeline_integration_test_base.h. This should be moved into | 51 # header for pipeline_integration_test_base.h. This should be moved into |
| 50 # the .cc file to avoid the extra dependency here. | 52 # the .cc file to avoid the extra dependency here. |
| 51 "//testing/gmock", | 53 "//testing/gmock", |
| 52 ] | 54 ] |
| 53 } | 55 } |
| 54 } | 56 } |
| 55 | 57 |
| 56 source_set("pipeline_integration_perftests") { | 58 source_set("pipeline_integration_perftests") { |
| 57 testonly = true | 59 testonly = true |
| 58 | 60 |
| 59 if (media_use_ffmpeg) { | 61 if (media_use_ffmpeg && !is_android) { |
| 60 sources = [ | 62 sources = [ |
| 61 "pipeline_integration_perftest.cc", | 63 "pipeline_integration_perftest.cc", |
| 62 ] | 64 ] |
| 63 | 65 |
| 64 deps = [ | 66 deps = [ |
| 65 ":pipeline_integration_test_base", | 67 ":pipeline_integration_test_base", |
| 66 "//media/base:test_support", | 68 "//media/base:test_support", |
| 67 "//testing/gtest", | 69 "//testing/gtest", |
| 68 "//testing/perf", | 70 "//testing/perf", |
| 69 | 71 |
| 70 # TODO(dalecurtis): Required since the gmock header is included in the | 72 # TODO(dalecurtis): Required since the gmock header is included in the |
| 71 # header for pipeline_integration_test_base.h. This should be moved into | 73 # header for pipeline_integration_test_base.h. This should be moved into |
| 72 # the .cc file to avoid the extra dependency here. | 74 # the .cc file to avoid the extra dependency here. |
| 73 "//testing/gmock", | 75 "//testing/gmock", |
| 74 ] | 76 ] |
| 75 } | 77 } |
| 76 } | 78 } |
| 77 | 79 |
| 78 if (!is_component_build) { | 80 if (!is_component_build) { |
| 79 source_set("mojo_pipeline_integration_tests") { | 81 source_set("mojo_pipeline_integration_tests") { |
| 80 testonly = true | 82 testonly = true |
| 81 | 83 |
| 82 if (media_use_ffmpeg) { | 84 if (media_use_ffmpeg && !is_android) { |
| 83 sources = [ | 85 sources = [ |
| 84 "pipeline_integration_test.cc", | 86 "pipeline_integration_test.cc", |
| 85 ] | 87 ] |
| 86 | 88 |
| 87 defines = [ "MOJO_RENDERER" ] | 89 defines = [ "MOJO_RENDERER" ] |
| 88 | 90 |
| 89 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 91 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 90 | 92 |
| 91 deps = [ | 93 deps = [ |
| 92 ":pipeline_integration_test_base", | 94 ":pipeline_integration_test_base", |
| (...skipping 12 matching lines...) Expand all Loading... |
| 105 "//ui/gfx:test_support", | 107 "//ui/gfx:test_support", |
| 106 | 108 |
| 107 # TODO(dalecurtis): Required since the gmock header is included in the | 109 # TODO(dalecurtis): Required since the gmock header is included in the |
| 108 # header for pipeline_integration_test_base.h. This should be moved | 110 # header for pipeline_integration_test_base.h. This should be moved |
| 109 # into the .cc file to avoid the extra dependency here. | 111 # into the .cc file to avoid the extra dependency here. |
| 110 "//testing/gmock", | 112 "//testing/gmock", |
| 111 ] | 113 ] |
| 112 } | 114 } |
| 113 } | 115 } |
| 114 } | 116 } |
| OLD | NEW |