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

Unified Diff: pkg/analysis_server/test/socket_server_test.dart

Issue 787763004: Hooks for instrumentation (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analysis_server/test/domain_server_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/socket_server_test.dart
diff --git a/pkg/analysis_server/test/socket_server_test.dart b/pkg/analysis_server/test/socket_server_test.dart
index a794e03cfe45a379ea5f22c3943a61ac07e2c950..aa1a3121358d48a453623dc944fb1a18d029094f 100644
--- a/pkg/analysis_server/test/socket_server_test.dart
+++ b/pkg/analysis_server/test/socket_server_test.dart
@@ -10,6 +10,7 @@ import 'package:analysis_server/src/analysis_server.dart';
import 'package:analysis_server/src/constants.dart';
import 'package:analysis_server/src/protocol.dart';
import 'package:analysis_server/src/socket_server.dart';
+import 'package:analyzer/instrumentation/instrumentation.dart';
import 'package:analyzer/src/generated/sdk_io.dart';
import 'package:unittest/unittest.dart';
@@ -34,7 +35,8 @@ class SocketServerTest {
static void createAnalysisServer_alreadyStarted() {
SocketServer server = new SocketServer(
new AnalysisServerOptions(),
- DirectoryBasedDartSdk.defaultSdk);
+ DirectoryBasedDartSdk.defaultSdk,
+ new NullInstrumentationServer());
MockServerChannel channel1 = new MockServerChannel();
MockServerChannel channel2 = new MockServerChannel();
server.createAnalysisServer(channel1);
@@ -61,7 +63,8 @@ class SocketServerTest {
static Future createAnalysisServer_successful() {
SocketServer server = new SocketServer(
new AnalysisServerOptions(),
- DirectoryBasedDartSdk.defaultSdk);
+ DirectoryBasedDartSdk.defaultSdk,
+ new NullInstrumentationServer());
MockServerChannel channel = new MockServerChannel();
server.createAnalysisServer(channel);
channel.expectMsgCount(notificationCount: 1);
@@ -77,7 +80,8 @@ class SocketServerTest {
static Future requestHandler_exception() {
SocketServer server = new SocketServer(
new AnalysisServerOptions(),
- DirectoryBasedDartSdk.defaultSdk);
+ DirectoryBasedDartSdk.defaultSdk,
+ new NullInstrumentationServer());
MockServerChannel channel = new MockServerChannel();
server.createAnalysisServer(channel);
channel.expectMsgCount(notificationCount: 1);
@@ -99,7 +103,8 @@ class SocketServerTest {
static Future requestHandler_futureException() {
SocketServer server = new SocketServer(
new AnalysisServerOptions(),
- DirectoryBasedDartSdk.defaultSdk);
+ DirectoryBasedDartSdk.defaultSdk,
+ new NullInstrumentationServer());
MockServerChannel channel = new MockServerChannel();
server.createAnalysisServer(channel);
_MockRequestHandler handler = new _MockRequestHandler(true);
« no previous file with comments | « pkg/analysis_server/test/domain_server_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698