1. 17 Aug, 2018 1 commit
    • Ian Hickson's avatar
      Clean up usage of temporary directories (#20682) · 3dec6a69
      Ian Hickson authored
      All temporary directory start with `flutter_` and have their random component separated from the name by a period, as in `flutter_test_bundle.YFYQMY`.
      
      I've tried to find some of the places where we didn't cleanly delete temporary directories, too. This greatly reduces, though it does not entirely eliminate, the directories we leave behind when running tests, especially `flutter_tools` tests.
      
      While I was at it I standardized on `tempDir` as the variable name for temporary directories, since it was the most common, removing occurrences of `temp` and `tmp`, among others.
      
      Also I factored out some common code that used to catch exceptions that happen on Windows, and made more places use that pattern.
      3dec6a69
  2. 15 Aug, 2018 1 commit
    • Ian Hickson's avatar
      Shim package:test to avoid matcher issues (#20602) · 686d8f8a
      Ian Hickson authored
      * Upgrade everything except matcher.
      * Roll matcher (and test)
      * Adjust tests that depend on flutter:test directly to depend on a shim
      * Require use of package:test shim and remove other references to package:test
      686d8f8a
  3. 02 Aug, 2018 1 commit
  4. 27 Jul, 2018 1 commit
  5. 23 Jul, 2018 1 commit
  6. 16 Jul, 2018 2 commits
  7. 20 Jun, 2018 1 commit
  8. 19 Jun, 2018 1 commit
  9. 17 Feb, 2018 1 commit
  10. 10 Feb, 2018 2 commits
    • Chris Bracken's avatar
      flutter_tools: URI-decode data: URI content (#14627) · 2fe364fb
      Chris Bracken authored
      In getFlutterRoot(), scripts loaded via data: URIs are URI encoded.
      getFlutterRoot() scans the contents of the data for the file:// URI path
      of the Flutter SDK, which itself is URI-encoded. The end result is that
      if the SDK path contains a space, the embedded file:// URI will contain
      a %20. When this is encoded in a data: URI, the contents are
      URI-encoded, resulting in %2520, since the % is encoded to %25.
      
      This patch decodes the data: URI before extracting the SDK file:// URI.
      2fe364fb
    • Chris Bracken's avatar
      Allow spaces in SDK path in flutter_tools tests (#14617) · fd6baba1
      Chris Bracken authored
      The Flutter engine now supports package: and file: imports that resolve
      to paths on disk that include spaces and other URI-escaped characters.
      This patch eliminates the restriction that Dart source paths not include
      %20 (or other URI-escaped characters) in their paths in flutter_tool
      tests.
      fd6baba1
  11. 18 Dec, 2017 1 commit
  12. 10 Nov, 2017 1 commit
  13. 12 May, 2017 1 commit
  14. 08 May, 2017 1 commit
  15. 10 Mar, 2017 1 commit
  16. 06 Mar, 2017 1 commit
    • Todd Volkert's avatar
      Update flutter_tools test utils to prepare for record/replay tests (#8591) · 96ccad53
      Todd Volkert authored
      1. Add matchers for the `ProcessExit` exception class
      2. Add ability to control the setup of the `AppContext` we use in
         `testUsingContext()`
      3. Clean up the code that figures out the location of `Cache.flutterRoot`
         such that it works with `pub run test`. It previously only worked
         when the tests were invoked with standalone `dart`
      
      `#3` above will also help unblock #7941
      96ccad53
  17. 04 Mar, 2017 1 commit
  18. 21 Feb, 2017 1 commit
  19. 18 Feb, 2017 1 commit
  20. 04 Feb, 2017 1 commit
  21. 24 Jan, 2017 1 commit
  22. 23 Jan, 2017 1 commit
  23. 15 Dec, 2016 1 commit
    • John McCutchan's avatar
      DependencyChecker with tests (#7268) · 2546259a
      John McCutchan authored
      - [x] Introduce DependencyChecker which can determine if any dependencies have been modified.
      - [x] Move the DartDependencyBuilder into a separate file.
      - [x] Add unit tests for DartDependencyBuilder.
      - [x] Add unit tets for DependencyChecker
      
      Part of #7014 
      2546259a
  24. 14 Nov, 2016 1 commit
    • Dan Rubel's avatar
      Refactor flutter command exit code - part 3 of 3 (#6838) · 34e466f1
      Dan Rubel authored
      * Remove the workaround that pinned args to v0.13.6
      This reverts most of the changes in commit 6331b6c8
      * throw exception if exit code is not an integer
      * rework command infrastructure to throw ToolExit when non-zero exitCode
      * convert commands to return Future<Null>
      * cleanup remaining commands to use throwToolExit for non-zero exit code
      * remove isUnusual exception message
      * add type annotations for updated args package
      34e466f1
  25. 19 May, 2016 1 commit
  26. 13 Feb, 2016 1 commit
  27. 12 Oct, 2015 2 commits
    • Adam Barth's avatar
      Teach sky_tools about prebuilt artifacts · bdd20661
      Adam Barth authored
      This patch makes `flutter start` work without a clone of the engine git
      repository. Making this work pulled a relatively large refactor of how the
      commands interact with application packages and devices. Now commands that want
      to interact with application packages or devices inherit from a common base
      class that holds stores of those objects as members.
      
      In production, the commands download and connect to devices based on the build
      configuration stored on the FlutterCommandRunner. In testing, these fields are
      used to mock out the real application package and devices.
      bdd20661
    • Ian Fischer's avatar
      IOSSimulator implementation. · a6a3f212
      Ian Fischer authored
      Also fixes some minor bugs with iOS and Android interactions.
      a6a3f212
  28. 06 Oct, 2015 1 commit
  29. 24 Sep, 2015 1 commit
  30. 16 Sep, 2015 1 commit
  31. 11 Sep, 2015 1 commit