Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Side by Side Diff: pkg/analysis_server/test/src/plugin/plugin_locator_test.dart

Issue 2952583003: Rename the plugin location key and directory name (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/plugin/plugin_locator.dart ('k') | pkg/analysis_server/test/src/plugin/plugin_watcher_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698