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

Side by Side Diff: pkg/analyzer/test/generated/test_support.dart

Issue 694833002: Fix logging API (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine.test_support; 8 library engine.test_support;
9 9
10 import 'dart:collection'; 10 import 'dart:collection';
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 * The number of error messages that were logged. 550 * The number of error messages that were logged.
551 */ 551 */
552 int errorCount = 0; 552 int errorCount = 0;
553 553
554 /** 554 /**
555 * The number of informational messages that were logged. 555 * The number of informational messages that were logged.
556 */ 556 */
557 int infoCount = 0; 557 int infoCount = 0;
558 558
559 @override 559 @override
560 void logError(String message) { 560 void logError(String message, [CaughtException exception]) {
561 errorCount++; 561 errorCount++;
562 } 562 }
563 563
564 @override 564 @override
565 void logError2(String message, Exception exception) { 565 void logError2(String message, Object exception) {
566 errorCount++; 566 errorCount++;
567 } 567 }
568 568
569 @override 569 @override
570 void logInformation(String message) { 570 void logInformation(String message, [CaughtException exception]) {
571 infoCount++; 571 infoCount++;
572 } 572 }
573 573
574 @override 574 @override
575 void logInformation2(String message, Exception exception) { 575 void logInformation2(String message, Object exception) {
576 infoCount++; 576 infoCount++;
577 } 577 }
578 } 578 }
579 579
580 580
581 class TestSource implements Source { 581 class TestSource implements Source {
582 String _name; 582 String _name;
583 String _contents; 583 String _contents;
584 int modificationStamp = 0; 584 int modificationStamp = 0;
585 bool exists2 = true; 585 bool exists2 = true;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 void getContentsToReceiver(Source_ContentReceiver receiver) { 638 void getContentsToReceiver(Source_ContentReceiver receiver) {
639 throw new UnsupportedOperationException(); 639 throw new UnsupportedOperationException();
640 } 640 }
641 Source resolve(String uri) { 641 Source resolve(String uri) {
642 throw new UnsupportedOperationException(); 642 throw new UnsupportedOperationException();
643 } 643 }
644 Uri resolveRelativeUri(Uri uri) { 644 Uri resolveRelativeUri(Uri uri) {
645 return new Uri(scheme: 'file', path: _name).resolveUri(uri); 645 return new Uri(scheme: 'file', path: _name).resolveUri(uri);
646 } 646 }
647 } 647 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698