diff options
author | jleyba@google.com <jleyba@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-11 00:45:55 +0000 |
---|---|---|
committer | jleyba@google.com <jleyba@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-11 00:45:55 +0000 |
commit | 48a3569247849980667a74b19f046adda34dd45c (patch) | |
tree | c82ea245be7ae37d6496f2ae2874469072941b52 /chrome/chrome_tests.gypi | |
parent | 8ecfdcc442c7a469af861bca68fccfa6b29c0f2d (diff) | |
download | chromium_src-48a3569247849980667a74b19f046adda34dd45c.zip chromium_src-48a3569247849980667a74b19f046adda34dd45c.tar.gz chromium_src-48a3569247849980667a74b19f046adda34dd45c.tar.bz2 |
SessionManager::GenerateSessionID() was generating IDs that were not suitable for use in a URL. The root cause of this was the use of a global count variable, appended to each ID to ensure it was unique. I've replaced this function with a new one that simply returns two random uint64 numbers as a hex string.
This change also updates chrome_tests.gypi to create a unittest binary for the chromedriver.
Patch by jleyba@chromium.org
Review URL: http://codereview.chromium.org/6409018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74532 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/chrome_tests.gypi')
-rw-r--r-- | chrome/chrome_tests.gypi | 83 |
1 files changed, 67 insertions, 16 deletions
diff --git a/chrome/chrome_tests.gypi b/chrome/chrome_tests.gypi index 7d2f37c..7b8b036 100644 --- a/chrome/chrome_tests.gypi +++ b/chrome/chrome_tests.gypi @@ -696,8 +696,8 @@ # be found at: http://seleniumhq.org/docs/09_webdriver.html. # The documention of the protocol implemented is at: # http://code.google.com/p/selenium/wiki/JsonWireProtocol - 'target_name': 'chromedriver', - 'type': 'executable', + 'target_name': 'chromedriver_lib', + 'type': '<(library)', 'dependencies': [ 'browser', 'chrome', @@ -710,7 +710,6 @@ '../build/temp_gyp/googleurl.gyp:googleurl', '../net/net.gyp:net', '../skia/skia.gyp:skia', - '../testing/gmock.gyp:gmock', '../testing/gtest.gyp:gtest', '../third_party/icu/icu.gyp:icui18n', '../third_party/icu/icu.gyp:icuuc', @@ -730,7 +729,6 @@ 'test/webdriver/error_codes.h', 'test/webdriver/keymap.h', 'test/webdriver/keymap.cc', - 'test/webdriver/server.cc', 'test/webdriver/session.h', 'test/webdriver/session.cc', 'test/webdriver/session_manager.h', @@ -777,15 +775,34 @@ '../views/views.gyp:views', ], }], - ['OS=="win"', { - 'include_dirs': [ - 'third_party/wtl/include', - ], - 'dependencies': [ - 'test_support_common', - '../google_update/google_update.gyp:google_update', - '../views/views.gyp:views', + ['OS=="linux" or OS=="freebsd"', { + 'conditions': [ + ['linux_use_tcmalloc==1', { + 'dependencies': [ + '../base/allocator/allocator.gyp:allocator', + ], + }], ], + }], + ], + }, + { + 'target_name': 'chromedriver', + 'type': 'executable', + 'msvs_guid': '3F9C9B6D-BBB6-480F-B038-23BF35A432DC', + 'dependencies': [ + 'chromedriver_lib', + '../skia/skia.gyp:skia', + '../testing/gtest.gyp:gtest', + ], + 'include_dirs': [ + '..', + ], + 'sources': [ + 'test/webdriver/server.cc', + ], + 'conditions': [ + ['OS=="win"', { 'conditions': [ ['win_use_allocator_shim==1', { 'dependencies': [ @@ -808,15 +825,49 @@ }, }, }, - },], - ['OS=="linux" or OS=="freebsd"', { + }], + ] + }, + { + 'target_name': 'chromedriver_unittests', + 'type': 'executable', + 'msvs_guid': 'E24B445D-96E3-4272-BB54-AACBC6D3FE7E', + 'dependencies': [ + 'chromedriver_lib', + '../base/base.gyp:test_support_base', + '../testing/gtest.gyp:gtest', + ], + 'include_dirs': [ + '..', + ], + 'sources': [ + '../base/test/run_all_unittests.cc', + 'test/webdriver/utility_functions_unittest.cc', + ], + 'conditions': [ + ['OS=="win"', { 'conditions': [ - ['linux_use_tcmalloc==1', { + ['win_use_allocator_shim==1', { 'dependencies': [ - '../base/allocator/allocator.gyp:allocator', + '<(allocator_target)', ], }], ], + 'link_settings': { + 'libraries': [ + '-lOleAcc.lib', + '-lws2_32.lib', + ], + }, + 'configurations': { + 'Debug': { + 'msvs_settings': { + 'VCLinkerTool': { + 'LinkIncremental': '<(msvs_large_module_debug_link_mode)', + }, + }, + }, + }, }], ], }, |