| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import 'package:analysis_server/src/plugin/plugin_locator.dart'; | 5 import 'package:analysis_server/src/plugin/plugin_locator.dart'; |
| 6 import 'package:analyzer/file_system/memory_file_system.dart'; | 6 import 'package:analyzer/file_system/memory_file_system.dart'; |
| 7 import 'package:test/test.dart'; | 7 import 'package:test/test.dart'; |
| 8 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 8 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
| 9 | 9 |
| 10 main() { | 10 main() { |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 pubspecPath = resourceProvider.pathContext | 69 pubspecPath = resourceProvider.pathContext |
| 70 .join(packageRoot, PluginLocator.pubspecFileName); | 70 .join(packageRoot, PluginLocator.pubspecFileName); |
| 71 resourceProvider.newFile(pubspecPath, content); | 71 resourceProvider.newFile(pubspecPath, content); |
| 72 } | 72 } |
| 73 | 73 |
| 74 String _createPubspecWithKey() { | 74 String _createPubspecWithKey() { |
| 75 String nonDefaultPath = | 75 String nonDefaultPath = |
| 76 resourceProvider.pathContext.join(packageRoot, 'pluginDir'); | 76 resourceProvider.pathContext.join(packageRoot, 'pluginDir'); |
| 77 _createPubspec(''' | 77 _createPubspec(''' |
| 78 name: test_project | 78 name: test_project |
| 79 ${PluginLocator.analysisPluginKey}: $nonDefaultPath | 79 ${PluginLocator.analyzerPluginKey}: $nonDefaultPath |
| 80 '''); | 80 '''); |
| 81 resourceProvider.newFolder(nonDefaultPath); | 81 resourceProvider.newFolder(nonDefaultPath); |
| 82 return nonDefaultPath; | 82 return nonDefaultPath; |
| 83 } | 83 } |
| 84 | 84 |
| 85 void _createPubspecWithoutKey() { | 85 void _createPubspecWithoutKey() { |
| 86 _createPubspec(''' | 86 _createPubspec(''' |
| 87 name: test_project | 87 name: test_project |
| 88 '''); | 88 '''); |
| 89 } | 89 } |
| 90 } | 90 } |
| OLD | NEW |