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 import("//testing/libfuzzer/fuzzer_test.gni") | 6 import("//testing/libfuzzer/fuzzer_test.gni") |
7 | 7 |
8 source_set("pipeline_integration_test_base") { | 8 source_set("pipeline_integration_test_base") { |
9 testonly = true | 9 testonly = true |
10 | 10 |
11 # Even if FFmpeg is enabled on Android we don't want these. | 11 if (media_use_ffmpeg) { |
12 # TODO(watk): Refactor tests that could be made to run on Android. See | |
13 # http://crbug.com/570762 | |
14 if (media_use_ffmpeg && !is_android) { | |
15 sources = [ | 12 sources = [ |
16 "pipeline_integration_test_base.cc", | 13 "pipeline_integration_test_base.cc", |
17 "pipeline_integration_test_base.h", | 14 "pipeline_integration_test_base.h", |
18 ] | 15 ] |
19 | 16 |
20 public_deps = [ | 17 public_deps = [ |
21 "//media", | 18 "//media", |
22 ] | 19 ] |
23 | 20 |
24 deps = [ | 21 deps = [ |
25 "//base", | 22 "//base", |
26 "//media:test_support", | 23 "//media:test_support", |
27 "//media/audio:test_support", | 24 "//media/audio:test_support", |
28 "//media/base:test_support", | 25 "//media/base:test_support", |
29 "//testing/gmock", | 26 "//testing/gmock", |
30 "//testing/gtest", | 27 "//testing/gtest", |
31 ] | 28 ] |
32 } | 29 } |
33 } | 30 } |
34 | 31 |
35 source_set("pipeline_integration_tests") { | 32 source_set("pipeline_integration_tests") { |
36 testonly = true | 33 testonly = true |
37 | 34 |
| 35 # Even if FFmpeg is enabled on Android we don't want these. |
| 36 # TODO(watk): Refactor tests that could be made to run on Android. See |
| 37 # http://crbug.com/570762 |
38 if (media_use_ffmpeg && !is_android) { | 38 if (media_use_ffmpeg && !is_android) { |
39 sources = [ | 39 sources = [ |
40 "pipeline_integration_test.cc", | 40 "pipeline_integration_test.cc", |
41 ] | 41 ] |
42 | 42 |
43 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 43 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
44 | 44 |
45 deps = [ | 45 deps = [ |
46 ":pipeline_integration_test_base", | 46 ":pipeline_integration_test_base", |
47 "//url", | 47 "//url", |
48 | 48 |
49 # TODO(dalecurtis): Required since the gmock header is included in the | 49 # TODO(dalecurtis): Required since the gmock header is included in the |
50 # header for pipeline_integration_test_base.h. This should be moved into | 50 # header for pipeline_integration_test_base.h. This should be moved into |
51 # the .cc file to avoid the extra dependency here. | 51 # the .cc file to avoid the extra dependency here. |
52 "//testing/gmock", | 52 "//testing/gmock", |
53 ] | 53 ] |
54 } | 54 } |
55 } | 55 } |
56 | 56 |
57 source_set("pipeline_integration_perftests") { | 57 source_set("pipeline_integration_perftests") { |
58 testonly = true | 58 testonly = true |
59 | 59 |
60 if (media_use_ffmpeg && !is_android) { | 60 if (media_use_ffmpeg) { |
61 sources = [ | 61 sources = [ |
62 "pipeline_integration_perftest.cc", | 62 "pipeline_integration_perftest.cc", |
63 ] | 63 ] |
64 | 64 |
65 deps = [ | 65 deps = [ |
66 ":pipeline_integration_test_base", | 66 ":pipeline_integration_test_base", |
67 "//media/base:test_support", | 67 "//media/base:test_support", |
68 "//testing/gtest", | 68 "//testing/gtest", |
69 "//testing/perf", | 69 "//testing/perf", |
70 | 70 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 # TODO(dalecurtis): Required since the gmock header is included in the | 124 # TODO(dalecurtis): Required since the gmock header is included in the |
125 # header for pipeline_integration_test_base.h. This should be | 125 # header for pipeline_integration_test_base.h. This should be |
126 # moved into the .cc file to avoid the extra dependency here. | 126 # moved into the .cc file to avoid the extra dependency here. |
127 "//testing/gmock", | 127 "//testing/gmock", |
128 "//ui/gfx:test_support", | 128 "//ui/gfx:test_support", |
129 ] | 129 ] |
130 | 130 |
131 # This is done to avoid DEATH of ASan with "Thread limit exceeded" error. | 131 # This is done to avoid DEATH of ASan with "Thread limit exceeded" error. |
132 libfuzzer_options = [ "runs=500000" ] | 132 libfuzzer_options = [ "runs=500000" ] |
133 } | 133 } |
OLD | NEW |