From 3eaacaba55533cd466edb293463b75bf8410ccb0 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Thu, 4 May 2023 13:28:54 +0200 Subject: [PATCH] sdk: Add / update copyright headers --- crates/matrix-sdk/src/room/timeline/tests/basic.rs | 14 ++++++++++++++ crates/matrix-sdk/src/room/timeline/tests/echo.rs | 14 ++++++++++++++ crates/matrix-sdk/src/room/timeline/tests/edit.rs | 14 ++++++++++++++ .../src/room/timeline/tests/encryption.rs | 14 ++++++++++++++ .../matrix-sdk/src/room/timeline/tests/invalid.rs | 14 ++++++++++++++ crates/matrix-sdk/src/room/timeline/tests/mod.rs | 2 +- .../src/room/timeline/tests/redaction.rs | 14 ++++++++++++++ crates/matrix-sdk/src/room/timeline/tests/virt.rs | 14 ++++++++++++++ 8 files changed, 99 insertions(+), 1 deletion(-) diff --git a/crates/matrix-sdk/src/room/timeline/tests/basic.rs b/crates/matrix-sdk/src/room/timeline/tests/basic.rs index 366ca07da..55e97c650 100644 --- a/crates/matrix-sdk/src/room/timeline/tests/basic.rs +++ b/crates/matrix-sdk/src/room/timeline/tests/basic.rs @@ -1,3 +1,17 @@ +// Copyright 2023 The Matrix.org Foundation C.I.C. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use assert_matches::assert_matches; use eyeball_im::VectorDiff; use futures_util::StreamExt; diff --git a/crates/matrix-sdk/src/room/timeline/tests/echo.rs b/crates/matrix-sdk/src/room/timeline/tests/echo.rs index 6d246cc6f..cf070f4fa 100644 --- a/crates/matrix-sdk/src/room/timeline/tests/echo.rs +++ b/crates/matrix-sdk/src/room/timeline/tests/echo.rs @@ -1,3 +1,17 @@ +// Copyright 2023 The Matrix.org Foundation C.I.C. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use std::{io, sync::Arc}; use assert_matches::assert_matches; diff --git a/crates/matrix-sdk/src/room/timeline/tests/edit.rs b/crates/matrix-sdk/src/room/timeline/tests/edit.rs index 2c09a8d9b..666f32f35 100644 --- a/crates/matrix-sdk/src/room/timeline/tests/edit.rs +++ b/crates/matrix-sdk/src/room/timeline/tests/edit.rs @@ -1,3 +1,17 @@ +// Copyright 2023 The Matrix.org Foundation C.I.C. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use assert_matches::assert_matches; use eyeball_im::VectorDiff; use futures_util::StreamExt; diff --git a/crates/matrix-sdk/src/room/timeline/tests/encryption.rs b/crates/matrix-sdk/src/room/timeline/tests/encryption.rs index 4c1e89817..ab62f3d59 100644 --- a/crates/matrix-sdk/src/room/timeline/tests/encryption.rs +++ b/crates/matrix-sdk/src/room/timeline/tests/encryption.rs @@ -1,3 +1,17 @@ +// Copyright 2023 The Matrix.org Foundation C.I.C. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #![cfg(not(target_arch = "wasm32"))] use std::{collections::BTreeSet, io::Cursor, iter}; diff --git a/crates/matrix-sdk/src/room/timeline/tests/invalid.rs b/crates/matrix-sdk/src/room/timeline/tests/invalid.rs index 6099b4ad5..f5cab1af8 100644 --- a/crates/matrix-sdk/src/room/timeline/tests/invalid.rs +++ b/crates/matrix-sdk/src/room/timeline/tests/invalid.rs @@ -1,3 +1,17 @@ +// Copyright 2023 The Matrix.org Foundation C.I.C. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use assert_matches::assert_matches; use eyeball_im::VectorDiff; use futures_util::StreamExt; diff --git a/crates/matrix-sdk/src/room/timeline/tests/mod.rs b/crates/matrix-sdk/src/room/timeline/tests/mod.rs index eec245175..74191415e 100644 --- a/crates/matrix-sdk/src/room/timeline/tests/mod.rs +++ b/crates/matrix-sdk/src/room/timeline/tests/mod.rs @@ -1,4 +1,4 @@ -// Copyright 2022 The Matrix.org Foundation C.I.C. +// Copyright 2023 The Matrix.org Foundation C.I.C. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/crates/matrix-sdk/src/room/timeline/tests/redaction.rs b/crates/matrix-sdk/src/room/timeline/tests/redaction.rs index 59ab79a87..9f86f3815 100644 --- a/crates/matrix-sdk/src/room/timeline/tests/redaction.rs +++ b/crates/matrix-sdk/src/room/timeline/tests/redaction.rs @@ -1,3 +1,17 @@ +// Copyright 2023 The Matrix.org Foundation C.I.C. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use assert_matches::assert_matches; use eyeball_im::VectorDiff; use futures_util::StreamExt; diff --git a/crates/matrix-sdk/src/room/timeline/tests/virt.rs b/crates/matrix-sdk/src/room/timeline/tests/virt.rs index 1bb9a102d..0054c665a 100644 --- a/crates/matrix-sdk/src/room/timeline/tests/virt.rs +++ b/crates/matrix-sdk/src/room/timeline/tests/virt.rs @@ -1,3 +1,17 @@ +// Copyright 2023 The Matrix.org Foundation C.I.C. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use assert_matches::assert_matches; use chrono::{Datelike, Local, TimeZone}; use eyeball_im::VectorDiff;