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

Unified Diff: runtime/observatory/tests/observatory_ui/mocks/repositories/notification.dart

Issue 2767533002: Revert "Fix observatory tests broken by running dartfmt." (Closed)
Patch Set: Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: runtime/observatory/tests/observatory_ui/mocks/repositories/notification.dart
diff --git a/runtime/observatory/tests/observatory_ui/mocks/repositories/notification.dart b/runtime/observatory/tests/observatory_ui/mocks/repositories/notification.dart
index 8855d92fe77579e70c55658e6baf989d6c6c062b..f03cd27257eab33f552fa96e61df31445c3a7bad 100644
--- a/runtime/observatory/tests/observatory_ui/mocks/repositories/notification.dart
+++ b/runtime/observatory/tests/observatory_ui/mocks/repositories/notification.dart
@@ -27,6 +27,7 @@ class NotificationRepositoryMock implements M.NotificationRepository {
bool deleteInvoked = false;
bool deleteAllInvoked = false;
+
void add(M.Notification notification) {
addInvoked = true;
if (_add != null) _add(notification);
@@ -42,19 +43,16 @@ class NotificationRepositoryMock implements M.NotificationRepository {
if (_add != null) _delete(notification);
}
- void deleteAll() {
- deleteAllInvoked = true;
- }
+ void deleteAll() { deleteAllInvoked = true; }
void triggerChangeEvent() {
_onChange.add(new NotificationChangeEventMock(repository: this));
}
- NotificationRepositoryMock(
- {Iterable<M.Notification> list: const [],
+ NotificationRepositoryMock({Iterable<M.Notification> list : const [],
NotificationRepositoryMockCallback add,
NotificationRepositoryMockCallback delete})
- : _list = list,
- _add = add,
- _delete = delete;
+ : _list = list,
+ _add = add,
+ _delete = delete;
}

Powered by Google App Engine
This is Rietveld 408576698