This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into camera_federated
- Loading branch information
Showing
18 changed files
with
437 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// Copyright 2017 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
import 'package:camera/camera.dart'; | ||
import 'package:flutter_test/flutter_test.dart'; | ||
|
||
void main() { | ||
group('camera', () { | ||
test('debugCheckIsDisposed should not throw assertion error when disposed', | ||
() { | ||
final MockCameraDescription description = MockCameraDescription(); | ||
final CameraController controller = CameraController( | ||
description, | ||
ResolutionPreset.low, | ||
); | ||
|
||
controller.dispose(); | ||
|
||
expect(controller.debugCheckIsDisposed, returnsNormally); | ||
}); | ||
|
||
test('debugCheckIsDisposed should throw assertion error when not disposed', | ||
() { | ||
final MockCameraDescription description = MockCameraDescription(); | ||
final CameraController controller = CameraController( | ||
description, | ||
ResolutionPreset.low, | ||
); | ||
|
||
expect( | ||
() => controller.debugCheckIsDisposed(), | ||
throwsAssertionError, | ||
); | ||
}); | ||
}); | ||
} | ||
|
||
class MockCameraDescription extends CameraDescription { | ||
@override | ||
CameraLensDirection get lensDirection => CameraLensDirection.back; | ||
|
||
@override | ||
String get name => 'back'; | ||
} |
4 changes: 4 additions & 0 deletions
4
packages/file_selector/file_selector_platform_interface/CHANGELOG.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
## 1.0.1 | ||
|
||
* Allow type groups that allow any file. | ||
|
||
## 1.0.0 | ||
|
||
* Initial release. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
## 0.6.7+14 | ||
|
||
* Set up XCUITests. | ||
|
||
## 0.6.7+13 | ||
|
||
* Update documentation of `getImage()` about HEIC images. | ||
|
Oops, something went wrong.