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

Unified Diff: pkg/barback/test/transformer/log.dart

Issue 808713003: Remove barback from the repo. (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/barback/test/transformer/lazy_rewrite.dart ('k') | pkg/barback/test/transformer/many_to_one.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/barback/test/transformer/log.dart
diff --git a/pkg/barback/test/transformer/log.dart b/pkg/barback/test/transformer/log.dart
deleted file mode 100644
index 4e3dd72d5424428a19fc083dc10fb6305131a934..0000000000000000000000000000000000000000
--- a/pkg/barback/test/transformer/log.dart
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
-// 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 barback.test.transformer.log;
-
-import 'dart:async';
-
-import 'package:barback/barback.dart';
-import 'package:barback/src/utils.dart';
-
-import 'mock.dart';
-
-/// A transformer that logs given entries during its apply.
-class LogTransformer extends MockTransformer {
- /// The list of entries that it should log.
- ///
- /// Each entry has the log level followed by the message, like:
- ///
- /// error: This is the error message.
- final List<String> _entries;
-
- LogTransformer(this._entries);
-
- bool doIsPrimary(AssetId id) => true;
-
- void doApply(Transform transform) {
- for (var entry in _entries) {
- var parts = entry.split(":");
- var logFn;
- switch (parts[0]) {
- case "error": logFn = transform.logger.error; break;
- case "warning": logFn = transform.logger.warning; break;
- case "info": logFn = transform.logger.info; break;
- case "fine": logFn = transform.logger.fine; break;
- }
-
- logFn(parts[1].trim());
- }
- }
-}
« no previous file with comments | « pkg/barback/test/transformer/lazy_rewrite.dart ('k') | pkg/barback/test/transformer/many_to_one.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698