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

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

Issue 2289953003: Converted Observatory library-view element (Closed)
Patch Set: Fixed inspect page pattern matching Created 4 years, 4 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
« no previous file with comments | « runtime/observatory/tests/observatory_ui/mocks/repositories/field.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/tests/observatory_ui/mocks/repositories/library.dart
diff --git a/runtime/observatory/tests/observatory_ui/mocks/repositories/context.dart b/runtime/observatory/tests/observatory_ui/mocks/repositories/library.dart
similarity index 50%
copy from runtime/observatory/tests/observatory_ui/mocks/repositories/context.dart
copy to runtime/observatory/tests/observatory_ui/mocks/repositories/library.dart
index 11d8dfae457d572fd8b55b5fcf372c8365a1b4ed..1d0f487b8b1eeb333d6c57806df25d78b3a9daa8 100644
--- a/runtime/observatory/tests/observatory_ui/mocks/repositories/context.dart
+++ b/runtime/observatory/tests/observatory_ui/mocks/repositories/library.dart
@@ -4,16 +4,16 @@
part of mocks;
-typedef Future<M.Context> ContextRepositoryMockCallback(M.IsolateRef isolate,
- String id);
+typedef Future<M.Library> LibraryRepositoryMockCallback(M.IsolateRef isolate,
+ String id);
-class ContextRepositoryMock implements M.ContextRepository {
- final ContextRepositoryMockCallback _get;
+class LibraryRepositoryMock implements M.LibraryRepository {
+ final LibraryRepositoryMockCallback _get;
- ContextRepositoryMock({ContextRepositoryMockCallback getter})
+ LibraryRepositoryMock({LibraryRepositoryMockCallback getter})
: _get = getter;
- Future<M.Context> get(M.IsolateRef isolate, String id){
+ Future<M.Library> get(M.IsolateRef isolate, String id){
if (_get != null) {
return _get(isolate, id);
}
« no previous file with comments | « runtime/observatory/tests/observatory_ui/mocks/repositories/field.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698