# TARGETS file for thrift/lib/cpp/concurrency/test

cpp_binary (
  name = "test",
  srcs = [
          "Tests.cpp"
         ],
  deps = [
          "@/thrift/lib/cpp/concurrency"
         ]
)

cpp_unittest (
  name = "test_mutex",
  srcs = [
          "RWMutexTest.cpp"
         ],
  deps = [
          "@/thrift/lib/cpp/concurrency",
          "@/thrift/lib/cpp:thrift",
         ],
  external_deps = [
          ('boost', '>= 1.37', 'boost_unit_test_framework'),
         ],
  type = 'boost',
  owner = 'putivsky',
  emails = ['adback-dev@lists.facebook.com',
            'thrift-team@lists.facebook.com'],

)

cpp_unittest(
  name = 'ThreadManagerTests',
  srcs = [
    'ThreadManagerTests.cpp',
  ],
  deps = [
    '@/thrift/lib/cpp/concurrency',
  ],
  external_deps = [
    ('boost', '>= 1.37', 'boost_unit_test_framework'),
  ],
  type = 'boost',
  emails = ['thrift-team@lists.facebook.com'],
)