# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//testing/test.gni")

source_set("fake_engine") {
  sources = [
    "fake_engine.cc",
    "fake_engine.h",
  ]

  deps = [
    "//base",
    "//blimp/test/fake_engine/proto:proto",
    "//third_party/grpc:grpc++_unsecure",
  ]
}

executable("fake_engine_app") {
  sources = [
    "fake_engine_main.cc",
  ]

  deps = [
    ":fake_engine",
    "//base",
    "//blimp/test/fake_engine/proto:proto",
    "//third_party/grpc:grpc++_unsecure",
  ]
}

test("fake_engine_app_tests") {
  testonly = true
  sources = [
    "fake_engine_app_tests.cc",
  ]

  data_deps = [
    ":fake_engine_app",
  ]

  deps = [
    ":fake_engine",
    "//base",
    "//base/test:test_support",
    "//blimp/test/fake_engine/proto:proto",
    "//testing/gmock",
    "//testing/gtest",
    "//third_party/grpc:grpc++_unsecure",
  ]
}
