summaryrefslogtreecommitdiffstats
path: root/chrome/installer/upgrade_test.gyp
diff options
context:
space:
mode:
authorgrt@chromium.org <grt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-23 15:01:22 +0000
committergrt@chromium.org <grt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-23 15:01:22 +0000
commitc744d29fc9ab2ca7b223f04a4a81ad0d2b85695a (patch)
treee019b9364b6fd7d071e67a4f4d3b9341913e7ab4 /chrome/installer/upgrade_test.gyp
parent20f570c7cf8cd224676d4ae0f1d84d21d284f67e (diff)
downloadchromium_src-c744d29fc9ab2ca7b223f04a4a81ad0d2b85695a.zip
chromium_src-c744d29fc9ab2ca7b223f04a4a81ad0d2b85695a.tar.gz
chromium_src-c744d29fc9ab2ca7b223f04a4a81ad0d2b85695a.tar.bz2
Add infrastructure enabling tests of installer upgrade scenarios.
BUG=none TEST=none Review URL: http://codereview.chromium.org/5236002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67099 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer/upgrade_test.gyp')
-rw-r--r--chrome/installer/upgrade_test.gyp66
1 files changed, 66 insertions, 0 deletions
diff --git a/chrome/installer/upgrade_test.gyp b/chrome/installer/upgrade_test.gyp
new file mode 100644
index 0000000..fd5127a
--- /dev/null
+++ b/chrome/installer/upgrade_test.gyp
@@ -0,0 +1,66 @@
+{
+ 'variables': {
+ 'version_py': '../../chrome/tools/build/version.py',
+ 'version_path': '../../chrome/VERSION',
+ 'lastchange_path': '<(SHARED_INTERMEDIATE_DIR)/build/LASTCHANGE',
+ # 'branding_dir' is set in the 'conditions' section at the bottom.
+ 'msvs_use_common_release': 0,
+ 'msvs_use_common_linker_extras': 0,
+ },
+ 'conditions': [
+ ['OS=="win"', {
+ 'target_defaults': {
+ },
+ 'targets': [
+ {
+ 'target_name': 'upgrade_test',
+ 'msvs_guid': 'BC4D6130-FDAD-47FB-B4FD-FCAF78DCBC3C',
+ 'type': 'executable',
+ 'dependencies': [
+ # This dependency, although correct, results in the mini installer
+ # being rebuilt every time upgrade_test is built. So disable it
+ # for now.
+ # TODO(grt): fix rules/targets/etc for
+ # mini_installer.gyp:mini_installer so that it does no work if
+ # nothing has changed, then un-comment this next line:
+ # 'mini_installer.gyp:mini_installer',
+ '../../base/base.gyp:test_support_base',
+ '../../testing/gtest.gyp:gtest',
+ '../chrome.gyp:common_constants',
+ '../chrome.gyp:installer_util',
+ ],
+ 'include_dirs': [
+ '../..',
+ ],
+ 'sources': [
+ 'test/alternate_version_generator.cc',
+ 'test/alternate_version_generator.h',
+ 'test/pe_image_resources.cc',
+ 'test/pe_image_resources.h',
+ 'test/resource_loader.cc',
+ 'test/resource_loader.h',
+ 'test/resource_updater.cc',
+ 'test/resource_updater.h',
+ 'test/run_all_tests.cc',
+ 'test/upgrade_test.cc',
+ ],
+ },
+ ],
+ }],
+ [ 'branding == "Chrome"', {
+ 'variables': {
+ 'branding_dir': '../app/theme/google_chrome',
+ },
+ }, { # else branding!="Chrome"
+ 'variables': {
+ 'branding_dir': '../app/theme/chromium',
+ },
+ }],
+ ],
+}
+
+# Local Variables:
+# tab-width:2
+# indent-tabs-mode:nil
+# End:
+# vim: set expandtab tabstop=2 shiftwidth=2: