Upstreaming browser/ui/uikit_ui_util from iOS.
[chromium-blink-merge.git] / media / test / BUILD.gn
blobb2b5002a9d220979145de93dfeaeb51339865281
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",
46       "//url",
48       # TODO(dalecurtis): Required since the gmock header is included in the
49       # header for pipeline_integration_test_base.h.  This should be moved into
50       # the .cc file to avoid the extra dependency here.
51       "//testing/gmock",
52     ]
53   }
56 source_set("pipeline_integration_perftests") {
57   testonly = true
59   if (media_use_ffmpeg) {
60     sources = [
61       "pipeline_integration_perftest.cc",
62     ]
64     deps = [
65       ":pipeline_integration_test_base",
66       "//media/base:test_support",
67       "//testing/gtest",
68       "//testing/perf",
70       # TODO(dalecurtis): Required since the gmock header is included in the
71       # header for pipeline_integration_test_base.h.  This should be moved into
72       # the .cc file to avoid the extra dependency here.
73       "//testing/gmock",
74     ]
75   }
78 if (!is_component_build) {
79   source_set("mojo_pipeline_integration_tests") {
80     testonly = true
82     if (media_use_ffmpeg) {
83       sources = [
84         "pipeline_integration_test.cc",
85       ]
87       defines = [ "MOJO_RENDERER" ]
89       configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
91       deps = [
92         ":pipeline_integration_test_base",
93         "//base",
94         "//base/test:test_support",
95         "//media",
96         "//media:test_support",
97         "//media/audio:test_support",
98         "//media/base:test_support",
99         "//media/mojo/interfaces",
100         "//media/mojo/services:proxy",
101         "//media/mojo/services:renderer_service",
102         "//mojo/application/public/cpp:test_support",
103         "//testing/gtest",
104         "//ui/gfx/geometry",
105         "//ui/gfx:test_support",
107         # TODO(dalecurtis): Required since the gmock header is included in the
108         # header for pipeline_integration_test_base.h.  This should be moved
109         # into the .cc file to avoid the extra dependency here.
110         "//testing/gmock",
111       ]
112     }
113   }