Skip to content

Commit

Permalink
Add fishhook to ios/third_party.
Browse files Browse the repository at this point in the history
Fishhook is an iOS tool for rebinding symbols in Mach-O used in tests.

BUG=580715

Review URL: https://codereview.chromium.org/1625723002

Cr-Commit-Position: refs/heads/master@{#376744}
  • Loading branch information
baxley authored and Commit bot committed Feb 22, 2016
1 parent 637777b commit 1308ce8
Show file tree
Hide file tree
Showing 7 changed files with 60 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ vs-chromium-project.txt
/infra/.recipe_deps
/internal_gyp
/ios/build/util/CANARY_VERSION
/ios/third_party/fishhook/src
/ios/third_party/gcdwebserver/src
/llvm
/media/cast/logging/cast_logging_proto_lib.xml
Expand Down
2 changes: 2 additions & 0 deletions DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,8 @@ deps_os = {
Var('deqp_url') + '@' + Var('deqp_revision'),
},
'ios': {
'src/ios/third_party/fishhook/src':
Var('chromium_git') + '/external/github.com/facebook/fishhook.git' + '@' + 'd172d5247aa590c25d0b1885448bae76036ea22c',
'src/ios/third_party/gcdwebserver/src':
Var('chromium_git') + '/external/github.com/swisspol/GCDWebServer.git' + '@' + '3d5fd0b8281a7224c057deb2d17709b5bea64836',

Expand Down
1 change: 1 addition & 0 deletions ios/ios.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
'provider/ios_provider_chrome.gyp:*',
'provider/ios_provider_web.gyp:*',
'testing/ios_testing.gyp:*',
'third_party/fishhook/fishhook.gyp:*',
'web/ios_web.gyp:*',
'web/ios_web_inttests.gyp:*',
'web/ios_web_shell.gyp:*',
Expand Down
22 changes: 22 additions & 0 deletions ios/third_party/fishhook/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Copyright (c) 2013, Facebook, Inc.
// All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
// * Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright notice,
// this list of conditions and the following disclaimer in the documentation
// and/or other materials provided with the distribution.
// * Neither the name Facebook nor the names of its contributors may be used to
// endorse or promote products derived from this software without specific
// prior written permission.
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2 changes: 2 additions & 0 deletions ios/third_party/fishhook/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
justincohen@chromium.org
rohitrao@chromium.org
11 changes: 11 additions & 0 deletions ios/third_party/fishhook/README.chromium
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Name: fishhook
Short Name: fishhook
URL: https://github.com/facebook/fishhook
Version: 0.2
License: BSD
License File: NOT_SHIPPED
Security Critical: no

Description:
Fishhook is a library that enables dynamically rebinding symbols in Mach-O
binaries running on iOS.
21 changes: 21 additions & 0 deletions ios/third_party/fishhook/fishhook.gyp
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2016 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.

{
'targets': [
{
'target_name': 'fishhook',
'type': 'static_library',
'sources': [
'src/fishhook.c',
'src/fishhook.h',
],
'direct_dependent_settings': {
'include_dirs': [
'src'
],
},
},
],
}

0 comments on commit 1308ce8

Please sign in to comment.