From 643f4b6aef209cfb3b55c07cdbd83692856c9863 Mon Sep 17 00:00:00 2001 From: Pumpkin_G Date: Sat, 12 Mar 2022 11:37:54 +0800 Subject: [PATCH] update license file Signed-off-by: bigpumpkin --- ohos_nweb/include/nweb_adapter_common.h | 17 ++++++++++++++--- ohos_nweb/include/nweb_input_event_consumer.h | 17 ++++++++++++++--- ohos_nweb/include/nweb_log.h | 17 ++++++++++++++--- ohos_nweb/include/nweb_surface_adapter.h | 17 ++++++++++++++--- ohos_nweb/include/nweb_window_adapter.h | 17 ++++++++++++++--- ohos_nweb/src/nweb_helper.cpp | 17 ++++++++++++++--- ohos_nweb/src/nweb_input_event_consumer.cpp | 17 ++++++++++++++--- ohos_nweb/src/nweb_surface_adapter.cpp | 17 ++++++++++++++--- ohos_nweb/src/nweb_window_adapter.cpp | 17 ++++++++++++++--- test/ohos_nweb/nweb_client_impl_test.cpp | 17 ++++++++++++++--- test/ohos_nweb/nweb_client_impl_test.h | 17 ++++++++++++++--- .../nweb_client_impl_test_for_intercept.cpp | 17 ++++++++++++++--- .../nweb_client_impl_test_for_intercept.h | 17 ++++++++++++++--- test/ohos_nweb/nweb_cookie_test_callback.h | 17 ++++++++++++++--- .../nweb_downloadlistener_impl_test.cpp | 17 ++++++++++++++--- .../nweb_downloadlistener_impl_test.h | 17 ++++++++++++++--- .../nweb_input_event_consumer_test.cpp | 17 ++++++++++++++--- .../ohos_nweb/nweb_input_event_consumer_test.h | 17 ++++++++++++++--- .../nweb_javascript_result_callback_test.cpp | 18 +++++++++++++++--- .../nweb_javascript_result_callback_test.h | 17 ++++++++++++++--- test/ohos_nweb/nweb_js_dialog_impl_test.cpp | 1 + test/ohos_nweb/nweb_js_dialog_impl_test.h | 17 ++++++++++++++--- test/ohos_nweb/nweb_test_log.h | 17 ++++++++++++++--- test/ohos_nweb/ohos_nweb_test.cpp | 17 ++++++++++++++--- test/ohos_nweb/utils.h | 17 ++++++++++++++--- 25 files changed, 338 insertions(+), 72 deletions(-) diff --git a/ohos_nweb/include/nweb_adapter_common.h b/ohos_nweb/include/nweb_adapter_common.h index 511865a02..e64fe80e1 100644 --- a/ohos_nweb/include/nweb_adapter_common.h +++ b/ohos_nweb/include/nweb_adapter_common.h @@ -1,6 +1,17 @@ -// Copyright (c) 2022 Huawei Device Co., Ltd. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. +/* + * Copyright (c) 2022 Huawei Device Co., Ltd. + * 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. + */ #ifndef NWEB_ADAPTER_COMMON_H #define NWEB_ADAPTER_COMMON_H diff --git a/ohos_nweb/include/nweb_input_event_consumer.h b/ohos_nweb/include/nweb_input_event_consumer.h index 0c29562b5..9dbc1b09a 100644 --- a/ohos_nweb/include/nweb_input_event_consumer.h +++ b/ohos_nweb/include/nweb_input_event_consumer.h @@ -1,6 +1,17 @@ -// Copyright (c) 2022 Huawei Device Co., Ltd. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. +/* + * Copyright (c) 2022 Huawei Device Co., Ltd. + * 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. + */ #ifndef NWEB_INPUT_EVENT_CONSUMER_H #define NWEB_INPUT_EVENT_CONSUMER_H diff --git a/ohos_nweb/include/nweb_log.h b/ohos_nweb/include/nweb_log.h index ddeeae5be..1d3a9f51a 100644 --- a/ohos_nweb/include/nweb_log.h +++ b/ohos_nweb/include/nweb_log.h @@ -1,6 +1,17 @@ -// Copyright (c) 2022 Huawei Device Co., Ltd. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. +/* + * Copyright (c) 2022 Huawei Device Co., Ltd. + * 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. + */ #ifndef NWEB_HILOG_H #define NWEB_HILOG_H diff --git a/ohos_nweb/include/nweb_surface_adapter.h b/ohos_nweb/include/nweb_surface_adapter.h index c01530bf3..09f8d0c17 100644 --- a/ohos_nweb/include/nweb_surface_adapter.h +++ b/ohos_nweb/include/nweb_surface_adapter.h @@ -1,6 +1,17 @@ -// Copyright (c) 2022 Huawei Device Co., Ltd. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. +/* + * Copyright (c) 2022 Huawei Device Co., Ltd. + * 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. + */ #ifndef NWEB_SURFACE_ADAPTER_H #define NWEB_SURFACE_ADAPTER_H diff --git a/ohos_nweb/include/nweb_window_adapter.h b/ohos_nweb/include/nweb_window_adapter.h index d56d8a3e8..b5f033e8f 100644 --- a/ohos_nweb/include/nweb_window_adapter.h +++ b/ohos_nweb/include/nweb_window_adapter.h @@ -1,6 +1,17 @@ -// Copyright (c) 2022 Huawei Device Co., Ltd. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. +/* + * Copyright (c) 2022 Huawei Device Co., Ltd. + * 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. + */ #ifndef NWEB_WINDOW_ADAPTER_H #define NWEB_WINDOW_ADAPTER_H diff --git a/ohos_nweb/src/nweb_helper.cpp b/ohos_nweb/src/nweb_helper.cpp index 4f22b3ed3..43a91f530 100644 --- a/ohos_nweb/src/nweb_helper.cpp +++ b/ohos_nweb/src/nweb_helper.cpp @@ -1,6 +1,17 @@ -// Copyright (c) 2022 Huawei Device Co., Ltd. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. +/* + * Copyright (c) 2022 Huawei Device Co., Ltd. + * 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. + */ #include "nweb_helper.h" diff --git a/ohos_nweb/src/nweb_input_event_consumer.cpp b/ohos_nweb/src/nweb_input_event_consumer.cpp index 558b47dec..bac5dea84 100644 --- a/ohos_nweb/src/nweb_input_event_consumer.cpp +++ b/ohos_nweb/src/nweb_input_event_consumer.cpp @@ -1,6 +1,17 @@ -// Copyright (c) 2022 Huawei Device Co., Ltd. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. +/* + * Copyright (c) 2022 Huawei Device Co., Ltd. + * 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. + */ #include "nweb_input_event_consumer.h" #include "nweb_log.h" diff --git a/ohos_nweb/src/nweb_surface_adapter.cpp b/ohos_nweb/src/nweb_surface_adapter.cpp index e8ea5bb8a..cfc21b3ee 100644 --- a/ohos_nweb/src/nweb_surface_adapter.cpp +++ b/ohos_nweb/src/nweb_surface_adapter.cpp @@ -1,6 +1,17 @@ -// Copyright (c) 2022 Huawei Device Co., Ltd. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. +/* + * Copyright (c) 2022 Huawei Device Co., Ltd. + * 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. + */ #include "nweb_surface_adapter.h" diff --git a/ohos_nweb/src/nweb_window_adapter.cpp b/ohos_nweb/src/nweb_window_adapter.cpp index 5bdf9cf5e..2b9ab5c8b 100644 --- a/ohos_nweb/src/nweb_window_adapter.cpp +++ b/ohos_nweb/src/nweb_window_adapter.cpp @@ -1,6 +1,17 @@ -// Copyright (c) 2022 Huawei Device Co., Ltd. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. +/* + * Copyright (c) 2022 Huawei Device Co., Ltd. + * 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. + */ #include "nweb_window_adapter.h" diff --git a/test/ohos_nweb/nweb_client_impl_test.cpp b/test/ohos_nweb/nweb_client_impl_test.cpp index b7f1df8a4..a9e65e200 100644 --- a/test/ohos_nweb/nweb_client_impl_test.cpp +++ b/test/ohos_nweb/nweb_client_impl_test.cpp @@ -1,6 +1,17 @@ -// Copyright (c) 2022 Huawei Device Co., Ltd. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. +/* + * Copyright (c) 2022 Huawei Device Co., Ltd. + * 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. + */ #include "nweb_client_impl_test.h" diff --git a/test/ohos_nweb/nweb_client_impl_test.h b/test/ohos_nweb/nweb_client_impl_test.h index 1ac2ca704..ec00f6116 100644 --- a/test/ohos_nweb/nweb_client_impl_test.h +++ b/test/ohos_nweb/nweb_client_impl_test.h @@ -1,6 +1,17 @@ -// Copyright (c) 2022 Huawei Device Co., Ltd. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. +/* + * Copyright (c) 2022 Huawei Device Co., Ltd. + * 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. + */ #ifndef NWEB_HANDLER_IMPL_TEST_H #define NWEB_HANDLER_IMPL_TEST_H diff --git a/test/ohos_nweb/nweb_client_impl_test_for_intercept.cpp b/test/ohos_nweb/nweb_client_impl_test_for_intercept.cpp index 5b9429e86..939844c80 100644 --- a/test/ohos_nweb/nweb_client_impl_test_for_intercept.cpp +++ b/test/ohos_nweb/nweb_client_impl_test_for_intercept.cpp @@ -1,6 +1,17 @@ -// Copyright (c) 2022 Huawei Device Co., Ltd. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. +/* + * Copyright (c) 2022 Huawei Device Co., Ltd. + * 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. + */ #include "nweb_client_impl_test_for_intercept.h" diff --git a/test/ohos_nweb/nweb_client_impl_test_for_intercept.h b/test/ohos_nweb/nweb_client_impl_test_for_intercept.h index 82c99772a..0b720e1d0 100644 --- a/test/ohos_nweb/nweb_client_impl_test_for_intercept.h +++ b/test/ohos_nweb/nweb_client_impl_test_for_intercept.h @@ -1,6 +1,17 @@ -// Copyright (c) 2022 Huawei Device Co., Ltd. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. +/* + * Copyright (c) 2022 Huawei Device Co., Ltd. + * 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. + */ #ifndef NWEB_HANDLER_IMPL_TEST_FOR_INTERCEPT_H #define NWEB_HANDLER_IMPL_TEST_FOR_INTERCEPT_H diff --git a/test/ohos_nweb/nweb_cookie_test_callback.h b/test/ohos_nweb/nweb_cookie_test_callback.h index b476fcb92..c85ca56cf 100644 --- a/test/ohos_nweb/nweb_cookie_test_callback.h +++ b/test/ohos_nweb/nweb_cookie_test_callback.h @@ -1,6 +1,17 @@ -// Copyright (c) 2022 Huawei Device Co., Ltd. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. +/* + * Copyright (c) 2022 Huawei Device Co., Ltd. + * 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. + */ #ifndef NWEB_COOKIE_TEST_CALLBACK_H #define NWEB_COOKIE_TEST_CALLBACK_H diff --git a/test/ohos_nweb/nweb_downloadlistener_impl_test.cpp b/test/ohos_nweb/nweb_downloadlistener_impl_test.cpp index 4f5d54703..18397e437 100644 --- a/test/ohos_nweb/nweb_downloadlistener_impl_test.cpp +++ b/test/ohos_nweb/nweb_downloadlistener_impl_test.cpp @@ -1,6 +1,17 @@ -// Copyright (c) 2022 Huawei Device Co., Ltd. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. +/* + * Copyright (c) 2022 Huawei Device Co., Ltd. + * 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. + */ #include "nweb_downloadlistener_impl_test.h" diff --git a/test/ohos_nweb/nweb_downloadlistener_impl_test.h b/test/ohos_nweb/nweb_downloadlistener_impl_test.h index 487b6d369..511ba3d8f 100644 --- a/test/ohos_nweb/nweb_downloadlistener_impl_test.h +++ b/test/ohos_nweb/nweb_downloadlistener_impl_test.h @@ -1,6 +1,17 @@ -// Copyright (c) 2022 Huawei Device Co., Ltd. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. +/* + * Copyright (c) 2022 Huawei Device Co., Ltd. + * 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. + */ #ifndef NWEB_DOWNLOADLISTENER_IMPL_TEST_H #define NWEB_DOWNLOADLISTENER_IMPL_TEST_H diff --git a/test/ohos_nweb/nweb_input_event_consumer_test.cpp b/test/ohos_nweb/nweb_input_event_consumer_test.cpp index 8c0a0b2f5..19fae6c38 100644 --- a/test/ohos_nweb/nweb_input_event_consumer_test.cpp +++ b/test/ohos_nweb/nweb_input_event_consumer_test.cpp @@ -1,6 +1,17 @@ -// Copyright (c) 2022 Huawei Device Co., Ltd. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. +/* + * Copyright (c) 2022 Huawei Device Co., Ltd. + * 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. + */ #include "nweb_input_event_consumer_test.h" #include "nweb_test_log.h" diff --git a/test/ohos_nweb/nweb_input_event_consumer_test.h b/test/ohos_nweb/nweb_input_event_consumer_test.h index f73ef91e0..9f7b86f28 100644 --- a/test/ohos_nweb/nweb_input_event_consumer_test.h +++ b/test/ohos_nweb/nweb_input_event_consumer_test.h @@ -1,6 +1,17 @@ -// Copyright (c) 2022 Huawei Device Co., Ltd. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. +/* + * Copyright (c) 2022 Huawei Device Co., Ltd. + * 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. + */ #ifndef NWEB_INPUT_EVENT_CONSUMER_TEST_H #define NWEB_INPUT_EVENT_CONSUMER_TEST_H diff --git a/test/ohos_nweb/nweb_javascript_result_callback_test.cpp b/test/ohos_nweb/nweb_javascript_result_callback_test.cpp index 1e0c67e54..eb00da149 100644 --- a/test/ohos_nweb/nweb_javascript_result_callback_test.cpp +++ b/test/ohos_nweb/nweb_javascript_result_callback_test.cpp @@ -1,6 +1,18 @@ -// Copyright (c) 2022 Huawei Device Co., Ltd. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. +/* + * Copyright (c) 2022 Huawei Device Co., Ltd. + * 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. + */ + #include "nweb_javascript_result_callback_test.h" #include diff --git a/test/ohos_nweb/nweb_javascript_result_callback_test.h b/test/ohos_nweb/nweb_javascript_result_callback_test.h index 2a4771daf..5230d1560 100644 --- a/test/ohos_nweb/nweb_javascript_result_callback_test.h +++ b/test/ohos_nweb/nweb_javascript_result_callback_test.h @@ -1,6 +1,17 @@ -// Copyright (c) 2022 Huawei Device Co., Ltd. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. +/* + * Copyright (c) 2022 Huawei Device Co., Ltd. + * 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. + */ #ifndef WEB_JAVASCRIPT_RESULT_CALLBACK_TEST_H #define WEB_JAVASCRIPT_RESULT_CALLBACK_TEST_H diff --git a/test/ohos_nweb/nweb_js_dialog_impl_test.cpp b/test/ohos_nweb/nweb_js_dialog_impl_test.cpp index db5569533..45add1989 100644 --- a/test/ohos_nweb/nweb_js_dialog_impl_test.cpp +++ b/test/ohos_nweb/nweb_js_dialog_impl_test.cpp @@ -12,6 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + #include "nweb_js_dialog_impl_test.h" #include "nweb_test_log.h" diff --git a/test/ohos_nweb/nweb_js_dialog_impl_test.h b/test/ohos_nweb/nweb_js_dialog_impl_test.h index 1f1e120fc..531dde231 100644 --- a/test/ohos_nweb/nweb_js_dialog_impl_test.h +++ b/test/ohos_nweb/nweb_js_dialog_impl_test.h @@ -1,6 +1,17 @@ -// Copyright (c) 2022 Huawei Device Co., Ltd. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. +/* + * Copyright (c) 2022 Huawei Device Co., Ltd. + * 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. + */ #ifndef NWEB_JS_DIALOG_IMPL_TEST_H #define NWEB_JS_DIALOG_IMPL_TEST_H diff --git a/test/ohos_nweb/nweb_test_log.h b/test/ohos_nweb/nweb_test_log.h index eaffb2d4a..cfa69dac9 100644 --- a/test/ohos_nweb/nweb_test_log.h +++ b/test/ohos_nweb/nweb_test_log.h @@ -1,6 +1,17 @@ -// Copyright (c) 2022 Huawei Device Co., Ltd. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. +/* + * Copyright (c) 2022 Huawei Device Co., Ltd. + * 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. + */ #ifndef NWEB_TEST_LOG_H #define NWEB_TEST_LOG_H diff --git a/test/ohos_nweb/ohos_nweb_test.cpp b/test/ohos_nweb/ohos_nweb_test.cpp index d3c5617d1..bcd4db97f 100644 --- a/test/ohos_nweb/ohos_nweb_test.cpp +++ b/test/ohos_nweb/ohos_nweb_test.cpp @@ -1,6 +1,17 @@ -// Copyright (c) 2022 Huawei Device Co., Ltd. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. +/* + * Copyright (c) 2022 Huawei Device Co., Ltd. + * 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. + */ #include #include diff --git a/test/ohos_nweb/utils.h b/test/ohos_nweb/utils.h index 782c5c2c4..eebf49ebb 100644 --- a/test/ohos_nweb/utils.h +++ b/test/ohos_nweb/utils.h @@ -1,6 +1,17 @@ -// Copyright (c) 2022 Huawei Device Co., Ltd. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. +/* + * Copyright (c) 2022 Huawei Device Co., Ltd. + * 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. + */ #ifndef NWEB_UTILS_H #define NWEB_UTILS_H -- Gitee