소스 검색

Update license on example server/cient. (#356)

Nikita Lutsenko 9 년 전
부모
커밋
ee395defcf

+ 11 - 0
LICENSE-examples

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

+ 5 - 4
TestChat/TCAppDelegate.h

@@ -1,9 +1,10 @@
 //
-//  TCAppDelegate.h
-//  TestChat
+// Copyright 2012 Square Inc.
+// Portions Copyright (c) 2016-present, Facebook, Inc.
+// All rights reserved.
 //
-//  Created by Mike Lewis on 1/28/12.
-//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+// This source code is licensed under the license found in the
+// LICENSE-examples file in the root directory of this source tree.
 //
 
 #import <UIKit/UIKit.h>

+ 5 - 5
TestChat/TCAppDelegate.m

@@ -1,14 +1,14 @@
 //
-//  TCAppDelegate.m
-//  TestChat
+// Copyright 2012 Square Inc.
+// Portions Copyright (c) 2016-present, Facebook, Inc.
+// All rights reserved.
 //
-//  Created by Mike Lewis on 1/28/12.
-//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+// This source code is licensed under the license found in the
+// LICENSE-examples file in the root directory of this source tree.
 //
 
 #import "TCAppDelegate.h"
 
-
 @implementation TCAppDelegate
 
 @synthesize window = _window;

+ 5 - 4
TestChat/TCChatCell.h

@@ -1,9 +1,10 @@
 //
-//  TCChatCell.h
-//  SocketRocket
+// Copyright 2012 Square Inc.
+// Portions Copyright (c) 2016-present, Facebook, Inc.
+// All rights reserved.
 //
-//  Created by Mike Lewis on 1/28/12.
-//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+// This source code is licensed under the license found in the
+// LICENSE-examples file in the root directory of this source tree.
 //
 
 #import <UIKit/UIKit.h>

+ 5 - 4
TestChat/TCChatCell.m

@@ -1,9 +1,10 @@
 //
-//  TCChatCell.m
-//  SocketRocket
+// Copyright 2012 Square Inc.
+// Portions Copyright (c) 2016-present, Facebook, Inc.
+// All rights reserved.
 //
-//  Created by Mike Lewis on 1/28/12.
-//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+// This source code is licensed under the license found in the
+// LICENSE-examples file in the root directory of this source tree.
 //
 
 #import "TCChatCell.h"

+ 5 - 4
TestChat/TCViewController.h

@@ -1,9 +1,10 @@
 //
-//  TCViewController.h
-//  TestChat
+// Copyright 2012 Square Inc.
+// Portions Copyright (c) 2016-present, Facebook, Inc.
+// All rights reserved.
 //
-//  Created by Mike Lewis on 1/28/12.
-//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+// This source code is licensed under the license found in the
+// LICENSE-examples file in the root directory of this source tree.
 //
 
 #import <UIKit/UIKit.h>

+ 5 - 4
TestChat/TCViewController.m

@@ -1,9 +1,10 @@
 //
-//  TCViewController.m
-//  TestChat
+// Copyright 2012 Square Inc.
+// Portions Copyright (c) 2016-present, Facebook, Inc.
+// All rights reserved.
 //
-//  Created by Mike Lewis on 1/28/12.
-//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+// This source code is licensed under the license found in the
+// LICENSE-examples file in the root directory of this source tree.
 //
 
 #import "TCViewController.h"

+ 5 - 4
TestChat/main.m

@@ -1,9 +1,10 @@
 //
-//  main.m
-//  TestChat
+// Copyright 2012 Square Inc.
+// Portions Copyright (c) 2016-present, Facebook, Inc.
+// All rights reserved.
 //
-//  Created by Mike Lewis on 1/28/12.
-//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+// This source code is licensed under the license found in the
+// LICENSE-examples file in the root directory of this source tree.
 //
 
 #import <UIKit/UIKit.h>

+ 9 - 0
TestChatServer/go/chatroom.go

@@ -1,3 +1,12 @@
+//
+// Copyright 2012 Square Inc.
+// Portions Copyright (c) 2016-present, Facebook, Inc.
+// All rights reserved.
+// 
+// This source code is licensed under the license found in the
+// LICENSE-examples file in the root directory of this source tree.
+//
+
 package main
 
 import (

+ 9 - 0
TestChatServer/py/chatroom.py

@@ -1,4 +1,13 @@
 #!/usr/bin/env python
+#
+# Copyright 2012 Square Inc.
+# Portions Copyright (c) 2016-present, Facebook, Inc.
+# All rights reserved.
+#
+# This source code is licensed under the license found in the
+# LICENSE-examples file in the root directory of this source tree.
+#
+
 import tornado
 import tornado.web
 import tornado.websocket

+ 8 - 0
TestChatServer/static/proxy.js

@@ -1,3 +1,11 @@
+//
+// Copyright 2012 Square Inc.
+// Portions Copyright (c) 2016-present, Facebook, Inc.
+// All rights reserved.
+// 
+// This source code is licensed under the license found in the
+// LICENSE-examples file in the root directory of this source tree.
+// 
 
 function SocketClient () {
   this.list_elem = document.getElementById('client_list');

+ 9 - 0
TestSupport/ensure_virtualenv.sh

@@ -1,3 +1,12 @@
+#
+# Copyright 2012 Square Inc.
+# Portions Copyright (c) 2016-present, Facebook, Inc.
+# All rights reserved.
+#
+# This source code is licensed under the license found in the
+# LICENSE-examples file in the root directory of this source tree.
+#
+
 VIRTUALENV_PATH=$1
 
 if [ -d "$VIRTUALENV_PATH" ]; then 

+ 9 - 0
TestSupport/run_test.sh

@@ -1,3 +1,12 @@
+#
+# Copyright 2012 Square Inc.
+# Portions Copyright (c) 2016-present, Facebook, Inc.
+# All rights reserved.
+#
+# This source code is licensed under the license found in the
+# LICENSE-examples file in the root directory of this source tree.
+#
+
 TEST_SCENARIOS=$1
 TEST_URL=$2
 CONFIGURATION=$3

+ 9 - 0
TestSupport/sr-testharness/srtestharness/runner.py

@@ -1,3 +1,12 @@
+#
+# Copyright 2012 Square Inc.
+# Portions Copyright (c) 2016-present, Facebook, Inc.
+# All rights reserved.
+#
+# This source code is licensed under the license found in the
+# LICENSE-examples file in the root directory of this source tree.
+#
+
 import argparse
 import json
 import sys