# Copyright (C) 2020 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

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

source_set("common") {
  deps = [
    "../../../../gn:default_deps",
    "../../../base",
  ]
  sources = [
    "cpu_freq_info.cc",
    "cpu_freq_info.h",
  ]
}

perfetto_unittest_source_set("unittests") {
  testonly = true
  deps = [
    ":common",
    ":test_support",
    "../../../../gn:default_deps",
    "../../../../gn:gtest_and_gmock",
    "../../../../src/tracing/test:test_support",
  ]
  sources = [ "cpu_freq_info_unittest.cc" ]
}

perfetto_unittest_source_set("test_support") {
  testonly = true
  deps = [
    ":common",
    "../../../../gn:default_deps",
    "../../../base:test_support",
  ]
  sources = [
    "cpu_freq_info_for_testing.cc",
    "cpu_freq_info_for_testing.h",
  ]
}
