blob: 55d6a39c3b2835481c7e22ce074af11b2156f6b6 [file] [log] [blame]
# Copyright 2021 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
source_set("image_writer") {
sources = [
"error_message_strings.cc",
"error_message_strings.h",
"image_writer.cc",
"image_writer.h",
"image_writer_handler.cc",
"image_writer_handler.h",
]
if (is_mac) {
sources += [
"disk_unmounter_mac.cc",
"disk_unmounter_mac.h",
"image_writer_mac.cc",
]
} else if (is_win) {
sources += [ "image_writer_win.cc" ]
} else {
sources += [ "image_writer_stub.cc" ]
}
deps = [
"//base",
"//chrome/services/removable_storage_writer/public/mojom",
"//content/public/utility",
"//mojo/public/cpp/bindings",
]
if (is_mac) {
deps += [ "//chrome/common" ]
}
}
source_set("unit_tests") {
testonly = true
sources = [ "image_writer_unittest.cc" ]
deps = [
":image_writer",
"//base",
"//base/test:test_support",
"//testing/gmock",
"//testing/gtest",
]
}