Skip to content

Commit

Permalink
add missing copyright headers
Browse files Browse the repository at this point in the history
Summary: Some files were lacking copyright headers and OSS audit caught it in T35568378

Differential Revision: D13165332

fbshipit-source-id: 8471eeaeeccf6e0b3d2a413eba9f750b95c5c174
  • Loading branch information
saifhhasan authored and facebook-github-bot committed Nov 22, 2018
1 parent 8e66008 commit 34fa188
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 2 deletions.
8 changes: 8 additions & 0 deletions openr/allocators/tests/MockSystemServiceHandler.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

#include "MockSystemServiceHandler.h"

#include <openr/common/Util.h>
Expand All @@ -13,4 +20,5 @@ void MockSystemServiceHandler::getIfaceAddresses(
_return.emplace_back(toIpPrefix(prefix));
}
}

} // namespace openr
10 changes: 10 additions & 0 deletions openr/allocators/tests/MockSystemServiceHandler.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

#pragma once

#include <openr/common/Util.h>
#include <openr/if/gen-cpp2/SystemService.h>

Expand All @@ -13,4 +22,5 @@ class MockSystemServiceHandler final : public thrift::SystemServiceSvIf {
std::unique_ptr<std::string> iface, int16_t family, int16_t scope)
override;
};

} // namespace openr
3 changes: 1 addition & 2 deletions openr/nl/examples/NetlinkSocketSample.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/**
* Copyright 20__-present, Facebook, Inc.
* All rights reserved.
* Copyright (c) 2014-present, Facebook, Inc.
*
* This source code is licensed under the license found in the
* LICENSE-examples file in the root directory of this source tree.
Expand Down
8 changes: 8 additions & 0 deletions openr/tests/MockSystemHandler.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

#include "MockSystemHandler.h"

#include <openr/common/Util.h>
Expand All @@ -21,4 +28,5 @@ void MockSystemHandler::syncIfaceAddresses(
void MockSystemHandler::removeIfaceAddresses(
std::unique_ptr<std::string> ,
std::unique_ptr<std::vector< ::openr::thrift::IpPrefix>> ) {}

} // namespace openr
10 changes: 10 additions & 0 deletions openr/tests/MockSystemHandler.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

#pragma once

#include <openr/common/Util.h>
#include <openr/if/gen-cpp2/SystemService.h>

Expand All @@ -21,4 +30,5 @@ class MockSystemHandler final : public thrift::SystemServiceSvIf {
std::unique_ptr<std::string> iface,
std::unique_ptr<std::vector< ::openr::thrift::IpPrefix>> addrs) override;
};

} // namespace openr

0 comments on commit 34fa188

Please sign in to comment.