Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1529)

Unified Diff: chrome/installer/setup/BUILD.gn

Issue 1212163010: GN support for setup_unittests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@iwt
Patch Set: both_gn_and_gyp Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/chrome_installer.gypi ('k') | chrome/installer/setup/setup_unittests.rc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/setup/BUILD.gn
diff --git a/chrome/installer/setup/BUILD.gn b/chrome/installer/setup/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..449f16fc317354905c8b132e613e638f9ca9036d
--- /dev/null
+++ b/chrome/installer/setup/BUILD.gn
@@ -0,0 +1,57 @@
+# Copyright 2015 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.
+
+import("//testing/test.gni")
+
+if (is_win) {
+ test("setup_unittests") {
+ # TODO(robertshield): Move the items marked with "Move to lib"
+ # below into a separate lib and then link both setup.exe and
+ # setup_unittests.exe against that.
+ sources = [
+ "../mini_installer/appid.h",
+ "../mini_installer/chrome.release", # Move to lib
+ "../mini_installer/chrome_appid.cc",
+ "../mini_installer/configuration.cc",
+ "../mini_installer/configuration.h",
+ "../mini_installer/configuration_test.cc",
+ "../mini_installer/decompress.cc",
+ "../mini_installer/decompress.h",
+ "../mini_installer/decompress_test.cc",
+ "../mini_installer/mini_string.cc",
+ "../mini_installer/mini_string.h",
+ "../mini_installer/mini_string_test.cc",
+ "app_launcher_installer.cc", # Move to lib
+ "app_launcher_installer.h", # Move to lib
+ "archive_patch_helper.cc", # Move to lib
+ "archive_patch_helper.h", # Move to lib
+ "archive_patch_helper_unittest.cc",
+ "install.cc", # Move to lib
+ "install.h", # Move to lib
+ "install_unittest.cc",
+ "install_worker.cc", # Move to lib
+ "install_worker.h", # Move to lib
+ "install_worker_unittest.cc",
+ "run_all_unittests.cc",
+ "setup_constants.cc", # Move to lib
+ "setup_constants.h", # Move to lib
+ "setup_util.cc",
+ "setup_util_unittest.cc",
+ "setup_util_unittest.h",
+ ]
+
+ deps = [
+ "//base",
+ "//base:i18n",
+ "//base/test:test_support",
+ "//chrome/installer/util:strings",
+ "//chrome/installer/util:util",
+ "//testing/gmock",
+ "//testing/gtest",
+ ]
+
+ # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
+ configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
+ }
+}
« no previous file with comments | « chrome/chrome_installer.gypi ('k') | chrome/installer/setup/setup_unittests.rc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698