blob: 4d22f21e760ef8ad8f8fff368b5df28cb5bfe8df [file] [log] [blame]
# Copyright 2021 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("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",
]
}