| # Copyright 2023 The Chromium Authors |
| # Use of this source code is governed by a BSD - style license that can be |
| # found in the LICENSE file. |
| |
| import("//build/config/chromeos/ui_mode.gni") |
| import("//build/config/features.gni") |
| import("//testing/test.gni") |
| |
| assert(is_chromeos) |
| |
| static_library("classroom") { |
| sources = [ |
| "classroom_api_course_work_response_types.cc", |
| "classroom_api_course_work_response_types.h", |
| "classroom_api_courses_response_types.cc", |
| "classroom_api_courses_response_types.h", |
| "classroom_api_list_course_work_request.cc", |
| "classroom_api_list_course_work_request.h", |
| "classroom_api_list_courses_request.cc", |
| "classroom_api_list_courses_request.h", |
| "classroom_api_list_student_submissions_request.cc", |
| "classroom_api_list_student_submissions_request.h", |
| "classroom_api_list_students_request.cc", |
| "classroom_api_list_students_request.h", |
| "classroom_api_student_submissions_response_types.cc", |
| "classroom_api_student_submissions_response_types.h", |
| "classroom_api_students_response_types.cc", |
| "classroom_api_students_response_types.h", |
| ] |
| |
| deps = [ |
| "//base", |
| "//google_apis:google_apis", |
| "//google_apis/common:common", |
| "//net", |
| "//services/network/public/cpp", |
| ] |
| |
| configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| } |
| |
| source_set("classroom_unittests") { |
| testonly = true |
| |
| sources = [ |
| "classroom_api_course_work_response_types_unittest.cc", |
| "classroom_api_courses_response_types_unittest.cc", |
| "classroom_api_list_course_work_request_unittest.cc", |
| "classroom_api_list_courses_request_unittest.cc", |
| "classroom_api_list_student_submissions_request_unittest.cc", |
| "classroom_api_list_students_request_unittest.cc", |
| "classroom_api_student_submissions_response_types_unittest.cc", |
| "classroom_api_students_response_types_unittest.cc", |
| ] |
| |
| deps = [ |
| ":classroom", |
| "//base/test:test_support", |
| "//google_apis:test_support", |
| "//google_apis/common:test_support", |
| "//net:test_support", |
| "//services/network:test_support", |
| "//testing/gmock", |
| "//testing/gtest", |
| ] |
| } |