# Copyright 2017 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.

source_set("cpp") {
  sources = [
    "access_token_fetcher.cc",
    "access_token_fetcher.h",
    "access_token_info.cc",
    "access_token_info.h",
    "identity_manager.cc",
    "identity_manager.h",
    "primary_account_access_token_fetcher.cc",
    "primary_account_access_token_fetcher.h",
  ]

  public_deps = [
    "//components/signin/core/browser",
  ]
}

# A source_set for types which the public interfaces depend on for typemapping.
# This cannot itself depend on the main public interfaces target.
source_set("cpp_types") {
  output_name = "identity_cpp_types"

  sources = [
    "account_state.cc",
    "account_state.h",
    "scope_set.h",
  ]
}

source_set("test_support") {
  testonly = true
  sources = [
    "identity_test_environment.cc",
    "identity_test_environment.h",
    "identity_test_utils.cc",
    "identity_test_utils.h",
  ]

  public_deps = [
    ":cpp",
  ]

  deps = [
    "//components/signin/core/browser:test_support",
    "//components/sync_preferences:test_support",
  ]
}
