| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 library pub_dartlang_org.handlers_test; | 5 library pub_dartlang_org.handlers_test; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:convert'; | 8 import 'dart:convert'; |
| 9 | 9 |
| 10 import 'package:unittest/unittest.dart'; | 10 import 'package:unittest/unittest.dart'; |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 } | 153 } |
| 154 | 154 |
| 155 String renderPkgIndexPage(List<Package> packages, | 155 String renderPkgIndexPage(List<Package> packages, |
| 156 List<PackageVersion> versions, | 156 List<PackageVersion> versions, |
| 157 PageLinks links) { | 157 PageLinks links) { |
| 158 return Response; | 158 return Response; |
| 159 } | 159 } |
| 160 | 160 |
| 161 String renderPkgShowPage(Package package, | 161 String renderPkgShowPage(Package package, |
| 162 List<PackageVersion> versions, | 162 List<PackageVersion> versions, |
| 163 List<Uri> downloadUris, | 163 List<Uri> versionDownloadUrls, |
| 164 PackageVersion latestVersion, | 164 PackageVersion selectedVersion, |
| 165 PackageVersion latestStableVersion, |
| 166 PackageVersion latestDevVersion, |
| 165 int totalNumberOfVersions) { | 167 int totalNumberOfVersions) { |
| 166 return Response; | 168 return Response; |
| 167 } | 169 } |
| 168 | 170 |
| 169 String renderPkgVersionsPage(String package, | 171 String renderPkgVersionsPage(String package, |
| 170 List<PackageVersion> versions, | 172 List<PackageVersion> versions, |
| 171 List<Uri> versionDownloadUrls) { | 173 List<Uri> versionDownloadUrls) { |
| 172 return Response; | 174 return Response; |
| 173 } | 175 } |
| 174 | 176 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 | 215 |
| 214 final Function searchFun; | 216 final Function searchFun; |
| 215 | 217 |
| 216 SearchServiceMock(this.searchFun); | 218 SearchServiceMock(this.searchFun); |
| 217 | 219 |
| 218 Future<SearchResultPage> search( | 220 Future<SearchResultPage> search( |
| 219 String query, int offset, int numResults) async { | 221 String query, int offset, int numResults) async { |
| 220 return searchFun(query, offset, numResults); | 222 return searchFun(query, offset, numResults); |
| 221 } | 223 } |
| 222 } | 224 } |
| OLD | NEW |