Skip to content

Commit ee395de

Browse files
committed
Update license on example server/cient. (#356)
1 parent fa129d3 commit ee395de

14 files changed

+99
-29
lines changed

LICENSE-examples

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Copyright (c) 2016-present, Facebook, Inc. All rights reserved.
2+
3+
The examples provided by Facebook are for non-commercial testing and evaluation
4+
purposes only. Facebook reserves all rights not expressly granted.
5+
6+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
7+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
8+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
9+
FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
10+
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
11+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

TestChat/TCAppDelegate.h

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
//
2-
// TCAppDelegate.h
3-
// TestChat
2+
// Copyright 2012 Square Inc.
3+
// Portions Copyright (c) 2016-present, Facebook, Inc.
4+
// All rights reserved.
45
//
5-
// Created by Mike Lewis on 1/28/12.
6-
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
6+
// This source code is licensed under the license found in the
7+
// LICENSE-examples file in the root directory of this source tree.
78
//
89

910
#import <UIKit/UIKit.h>

TestChat/TCAppDelegate.m

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
//
2-
// TCAppDelegate.m
3-
// TestChat
2+
// Copyright 2012 Square Inc.
3+
// Portions Copyright (c) 2016-present, Facebook, Inc.
4+
// All rights reserved.
45
//
5-
// Created by Mike Lewis on 1/28/12.
6-
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
6+
// This source code is licensed under the license found in the
7+
// LICENSE-examples file in the root directory of this source tree.
78
//
89

910
#import "TCAppDelegate.h"
1011

11-
1212
@implementation TCAppDelegate
1313

1414
@synthesize window = _window;

TestChat/TCChatCell.h

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
//
2-
// TCChatCell.h
3-
// SocketRocket
2+
// Copyright 2012 Square Inc.
3+
// Portions Copyright (c) 2016-present, Facebook, Inc.
4+
// All rights reserved.
45
//
5-
// Created by Mike Lewis on 1/28/12.
6-
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
6+
// This source code is licensed under the license found in the
7+
// LICENSE-examples file in the root directory of this source tree.
78
//
89

910
#import <UIKit/UIKit.h>

TestChat/TCChatCell.m

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
//
2-
// TCChatCell.m
3-
// SocketRocket
2+
// Copyright 2012 Square Inc.
3+
// Portions Copyright (c) 2016-present, Facebook, Inc.
4+
// All rights reserved.
45
//
5-
// Created by Mike Lewis on 1/28/12.
6-
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
6+
// This source code is licensed under the license found in the
7+
// LICENSE-examples file in the root directory of this source tree.
78
//
89

910
#import "TCChatCell.h"

TestChat/TCViewController.h

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
//
2-
// TCViewController.h
3-
// TestChat
2+
// Copyright 2012 Square Inc.
3+
// Portions Copyright (c) 2016-present, Facebook, Inc.
4+
// All rights reserved.
45
//
5-
// Created by Mike Lewis on 1/28/12.
6-
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
6+
// This source code is licensed under the license found in the
7+
// LICENSE-examples file in the root directory of this source tree.
78
//
89

910
#import <UIKit/UIKit.h>

TestChat/TCViewController.m

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
//
2-
// TCViewController.m
3-
// TestChat
2+
// Copyright 2012 Square Inc.
3+
// Portions Copyright (c) 2016-present, Facebook, Inc.
4+
// All rights reserved.
45
//
5-
// Created by Mike Lewis on 1/28/12.
6-
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
6+
// This source code is licensed under the license found in the
7+
// LICENSE-examples file in the root directory of this source tree.
78
//
89

910
#import "TCViewController.h"

TestChat/main.m

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
//
2-
// main.m
3-
// TestChat
2+
// Copyright 2012 Square Inc.
3+
// Portions Copyright (c) 2016-present, Facebook, Inc.
4+
// All rights reserved.
45
//
5-
// Created by Mike Lewis on 1/28/12.
6-
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
6+
// This source code is licensed under the license found in the
7+
// LICENSE-examples file in the root directory of this source tree.
78
//
89

910
#import <UIKit/UIKit.h>

TestChatServer/go/chatroom.go

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
//
2+
// Copyright 2012 Square Inc.
3+
// Portions Copyright (c) 2016-present, Facebook, Inc.
4+
// All rights reserved.
5+
//
6+
// This source code is licensed under the license found in the
7+
// LICENSE-examples file in the root directory of this source tree.
8+
//
9+
110
package main
211

312
import (

TestChatServer/py/chatroom.py

+9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
#!/usr/bin/env python
2+
#
3+
# Copyright 2012 Square Inc.
4+
# Portions Copyright (c) 2016-present, Facebook, Inc.
5+
# All rights reserved.
6+
#
7+
# This source code is licensed under the license found in the
8+
# LICENSE-examples file in the root directory of this source tree.
9+
#
10+
211
import tornado
312
import tornado.web
413
import tornado.websocket

TestChatServer/static/proxy.js

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
//
2+
// Copyright 2012 Square Inc.
3+
// Portions Copyright (c) 2016-present, Facebook, Inc.
4+
// All rights reserved.
5+
//
6+
// This source code is licensed under the license found in the
7+
// LICENSE-examples file in the root directory of this source tree.
8+
//
19

210
function SocketClient () {
311
this.list_elem = document.getElementById('client_list');

TestSupport/ensure_virtualenv.sh

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
#
2+
# Copyright 2012 Square Inc.
3+
# Portions Copyright (c) 2016-present, Facebook, Inc.
4+
# All rights reserved.
5+
#
6+
# This source code is licensed under the license found in the
7+
# LICENSE-examples file in the root directory of this source tree.
8+
#
9+
110
VIRTUALENV_PATH=$1
211

312
if [ -d "$VIRTUALENV_PATH" ]; then

TestSupport/run_test.sh

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
#
2+
# Copyright 2012 Square Inc.
3+
# Portions Copyright (c) 2016-present, Facebook, Inc.
4+
# All rights reserved.
5+
#
6+
# This source code is licensed under the license found in the
7+
# LICENSE-examples file in the root directory of this source tree.
8+
#
9+
110
TEST_SCENARIOS=$1
211
TEST_URL=$2
312
CONFIGURATION=$3

TestSupport/sr-testharness/srtestharness/runner.py

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
#
2+
# Copyright 2012 Square Inc.
3+
# Portions Copyright (c) 2016-present, Facebook, Inc.
4+
# All rights reserved.
5+
#
6+
# This source code is licensed under the license found in the
7+
# LICENSE-examples file in the root directory of this source tree.
8+
#
9+
110
import argparse
211
import json
312
import sys

0 commit comments

Comments
 (0)