| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 executable("downloader") { | 5 import("//testing/test.gni") |
| 6 |
| 7 static_library("mac_installer_base") { |
| 6 sources = [ | 8 sources = [ |
| 7 "DownloadDelegate.m", | 9 "DownloadDelegate.m", |
| 8 "Downloader.m", | 10 "Downloader.m", |
| 9 "NetworkCommunication.m", | 11 "NetworkCommunication.m", |
| 10 "OmahaCommunication.m", | 12 "OmahaCommunication.m", |
| 11 "OmahaXMLParser.m", | 13 "OmahaXMLParser.m", |
| 12 "OmahaXMLRequest.m", | 14 "OmahaXMLRequest.m", |
| 13 "SystemInfo.m", | 15 "SystemInfo.m", |
| 16 ] |
| 17 } |
| 18 |
| 19 executable("mac_installer") { |
| 20 sources = [ |
| 14 "main.m", | 21 "main.m", |
| 15 ] | 22 ] |
| 23 deps = [ |
| 24 ":mac_installer_base", |
| 25 ] |
| 16 libs = [ "Foundation.framework" ] | 26 libs = [ "Foundation.framework" ] |
| 17 } | 27 } |
| 28 |
| 29 test("mac_installer_test") { |
| 30 testonly = true |
| 31 sources = [ |
| 32 "testing/OmahaXMLRequest_test.mm", |
| 33 "testing/SystemInfo_test.mm", |
| 34 ] |
| 35 deps = [ |
| 36 ":mac_installer_base", |
| 37 "//base/test:run_all_unittests", |
| 38 ] |
| 39 libs = [ "Foundation.framework" ] |
| 40 } |
| OLD | NEW |