Chromium Code Reviews| Index: dart/pkg/microlytics/lib/html_channels.dart |
| diff --git a/dart/pkg/http/test/html/utils.dart b/dart/pkg/microlytics/lib/html_channels.dart |
| similarity index 53% |
| copy from dart/pkg/http/test/html/utils.dart |
| copy to dart/pkg/microlytics/lib/html_channels.dart |
| index 243278ea7fde4aae653b4619f740be6db8f10eae..b3eef43bbac4bb8b43f7a7ae35e66d7a5da530e8 100644 |
| --- a/dart/pkg/http/test/html/utils.dart |
| +++ b/dart/pkg/microlytics/lib/html_channels.dart |
| @@ -2,12 +2,13 @@ |
| // for details. All rights reserved. Use of this source code is governed by a |
| // BSD-style license that can be found in the LICENSE file. |
| -library http.test.html_utils; |
| +library microlytics.html_channels; |
| import 'dart:html'; |
| +import 'channels.dart'; |
| -export '../utils.dart'; |
| - |
| -/// The test server's echo URL. |
| -Uri get echoUrl => Uri.parse( |
| - '${window.location.protocol}//${window.location.host}/echo'); |
| +class HttpRequestChannel extends Channel { |
| + void sendData(String data) { |
| + HttpRequest.request(ANALYTICS_URL, method: "POST", sendData: data); |
|
ahe
2014/09/05 07:51:37
When you start writing tests of this, you'll have
|
| + } |
| +} |