diff --git a/tool/test/license_utils_test.dart b/tool/test/license_utils_test.dart index 9b771ffb42c..98b8fea0ee9 100644 --- a/tool/test/license_utils_test.dart +++ b/tool/test/license_utils_test.dart @@ -499,26 +499,33 @@ Future _setupTestConfigFile() async { final contents = '''--- # sequence of license text strings that should be matched against at the top of a file and removed. , which normally represents a date, will be stored. remove_licenses: + #0 - |- // This is some multiline license // text that should be removed from the file. + #1 - |- /* This is other multiline license text that should be removed from the file. */ + #2 - |- # This is more multiline license # text that should be removed from the file. + #3 - |- // This is some multiline license text to // remove that does not contain a stored value. # sequence of license text strings that should be added to the top of a file. will be replaced. -add_licenses: +add_licenses: + #0 - |- // This is some multiline license // text that should be added to the file. + #1 - |- # This is other multiline license # text that should be added to the file. + #2 - |- // This is some multiline license text to // add that does not contain a stored value. diff --git a/update_licenses.yaml b/update_licenses.yaml index 01002edd20e..796a0d72848 100644 --- a/update_licenses.yaml +++ b/update_licenses.yaml @@ -1,50 +1,70 @@ --- remove_licenses: + #0 - |- // Copyright The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. + #1 - |- /** Copyright The Chromium Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. **/ + #2 - |- # Copyright The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. + #3 - |- + #4 - |- REM Copyright The Chromium Authors. All rights reserved. REM Use of this source code is governed by a BSD-style license that can be REM found in the LICENSE file. -add_licenses: + #5 + - |- + // Copyright The Chromium Authors. All rights reserved. + // Use of this source code is governed by a BSD-style license that can be + // found in the LICENSE file + #6 + - |- + // Copyright 2022 The Chromium Authors. All rights reserved. + // Use of this source code is governed by a BSD-style license that can be found + // in the LICENSE file. +add_licenses: + #0 - |- // Copyright The Flutter Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file or at https://developers.google.com/open-source/licenses/bsd. + #1 - |- /** Copyright The Flutter Authors Use of this source code is governed by a BSD-style license that can be found in the LICENSE file or at https://developers.google.com/open-source/licenses/bsd. **/ + #2 - |- # Copyright The Flutter Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file or at https://developers.google.com/open-source/licenses/bsd. + #3 - |- + #4 - |- REM Copyright The Flutter Authors REM Use of this source code is governed by a BSD-style license that can be @@ -81,6 +101,8 @@ update_paths: remove: - 0 - 1 + - 5 + - 6 add: 0 gradle: remove: