Revert of Roll src/third_party/WebKit e0eac24:489c548 (svn 193311:193320) (patchset...
[chromium-blink-merge.git] / media / test / BUILD.gn
blob60849c1e86072cde2260974c9aa4e6af7094d8a7
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.
5 import("//media/media_options.gni")
7 source_set("pipeline_integration_test_base") {
8   testonly = true
10   if (media_use_ffmpeg) {
11     sources = [
12       "pipeline_integration_test_base.cc",
13       "pipeline_integration_test_base.h",
14     ]
16     deps = [
17       "//base",
18       "//media",
19       "//media:test_support",
20       "//media/audio:test_support",
21       "//media/base:test_support",
22       "//testing/gmock",
23       "//testing/gtest",
24     ]
25   }
28 source_set("pipeline_integration_tests") {
29   testonly = true
31   if (media_use_ffmpeg) {
32     sources = [
33       "pipeline_integration_test.cc",
34     ]
36     configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
38     deps = [
39       ":pipeline_integration_test_base",
40       "//base",
41       "//media",
42       "//media:test_support",
43       "//media/audio:test_support",
44       "//media/base:test_support",
45       "//testing/gtest",
47       # TODO(dalecurtis): Required since the gmock header is included in the
48       # header for pipeline_integration_test_base.h.  This should be moved into
49       # the .cc file to avoid the extra dependency here.
50       "//testing/gmock",
51     ]
52   }
55 source_set("pipeline_integration_perftests") {
56   testonly = true
58   if (media_use_ffmpeg) {
59     sources = [
60       "pipeline_integration_perftest.cc",
61     ]
63     deps = [
64       ":pipeline_integration_test_base",
65       "//media/base:test_support",
66       "//testing/gtest",
67       "//testing/perf",
69       # TODO(dalecurtis): Required since the gmock header is included in the
70       # header for pipeline_integration_test_base.h.  This should be moved into
71       # the .cc file to avoid the extra dependency here.
72       "//testing/gmock",
73     ]
74   }
77 if (!is_component_build) {
78   source_set("mojo_pipeline_integration_tests") {
79     testonly = true
81     if (media_use_ffmpeg) {
82       sources = [
83         "pipeline_integration_test.cc",
84       ]
86       defines = [ "MOJO_RENDERER" ]
88       configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
90       deps = [
91         ":pipeline_integration_test_base",
92         "//base",
93         "//base/test:test_support",
94         "//media",
95         "//media:test_support",
96         "//media/audio:test_support",
97         "//media/base:test_support",
98         "//media/mojo/interfaces",
99         "//media/mojo/services:media",
100         "//media/mojo/services:renderer_proxy",
101         "//media/mojo/services:renderer_service",
102         "//mojo/application",
103         "//mojo/application:test_support",
104         "//testing/gtest",
105         "//ui/gfx/geometry",
106         "//ui/gfx:test_support",
108         # TODO(dalecurtis): Required since the gmock header is included in the
109         # header for pipeline_integration_test_base.h.  This should be moved into
110         # the .cc file to avoid the extra dependency here.
111         "//testing/gmock",
112       ]
113     }
114   }