Home | History | Annotate | Download | only in test
      1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
      2 #
      3 # Use of this source code is governed by a BSD-style license
      4 # that can be found in the LICENSE file in the root of the source
      5 # tree. An additional intellectual property rights grant can be found
      6 # in the file PATENTS.  All contributing project authors may
      7 # be found in the AUTHORS file in the root of the source tree.
      8 
      9 # TODO(kjellander): Convert the rest of the test.gyp targets and put here.
     10 
     11 source_set("test") {
     12   testonly = true
     13 
     14   deps = [
     15     ":field_trial",
     16     ":test_support",
     17     ":test_support_main",
     18   ]
     19 }
     20 
     21 source_set("field_trial") {
     22   sources = [
     23     "field_trial.cc",
     24     "field_trial.h",
     25   ]
     26 
     27   deps = [
     28     "..:webrtc_common",
     29     "../system_wrappers",
     30     "../system_wrappers:field_trial_default",
     31   ]
     32 
     33   configs += [ "..:common_config" ]
     34   public_configs = [ "..:common_inherited_config" ]
     35 }
     36 
     37 source_set("histogram") {
     38   sources = [
     39     "histogram.cc",
     40     "histogram.h",
     41   ]
     42 
     43   deps = [
     44     "..:webrtc_common",
     45     "../system_wrappers",
     46   ]
     47 
     48   configs += [ "..:common_config" ]
     49   public_configs = [ "..:common_inherited_config" ]
     50 }
     51 
     52 source_set("test_support") {
     53   testonly = true
     54 
     55   sources = [
     56     "testsupport/fileutils.cc",
     57     "testsupport/fileutils.h",
     58     "testsupport/frame_reader.cc",
     59     "testsupport/frame_reader.h",
     60     "testsupport/frame_writer.cc",
     61     "testsupport/frame_writer.h",
     62     "testsupport/mock/mock_frame_reader.h",
     63     "testsupport/mock/mock_frame_writer.h",
     64     "testsupport/packet_reader.cc",
     65     "testsupport/packet_reader.h",
     66     "testsupport/perf_test.cc",
     67     "testsupport/perf_test.h",
     68     "testsupport/trace_to_stderr.cc",
     69     "testsupport/trace_to_stderr.h",
     70   ]
     71 
     72   deps = [
     73     "..:gtest_prod",
     74     "../system_wrappers",
     75     "//testing/gmock",
     76     "//testing/gtest",
     77   ]
     78 
     79   if (is_android) {
     80     deps += [ "//base:base" ]
     81   }
     82 
     83   configs += [ "..:common_config" ]
     84   public_configs = [ "..:common_inherited_config" ]
     85 }
     86 
     87 source_set("test_support_main") {
     88   testonly = true
     89 
     90   sources = [
     91     "run_all_unittests.cc",
     92     "test_suite.cc",
     93     "test_suite.h",
     94   ]
     95 
     96   deps = [
     97     ":field_trial",
     98     ":histogram",
     99     ":test_support",
    100     "//testing/gmock",
    101     "//testing/gtest",
    102     "//third_party/gflags",
    103   ]
    104 
    105   configs += [ "..:common_config" ]
    106   public_configs = [ "..:common_inherited_config" ]
    107 }
    108