Skip to content

Commit

Permalink
chore(common): removed OperatingSystem constants
Browse files Browse the repository at this point in the history
  • Loading branch information
tyllark committed Oct 17, 2024
1 parent dc37425 commit 0282976
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions packages/aws_common/test/config/file_location_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ void main() {
r'User home is loaded from $HOME with highest priority on non-windows platforms.',
() {
overrideOperatingSystem(
const OperatingSystem('linux', ''),
OperatingSystem('linux', ''),
() {
overrideEnvironment(
{
Expand Down Expand Up @@ -42,7 +42,7 @@ void main() {
r'User home is loaded from $HOME with highest priority on windows platforms.',
() {
overrideOperatingSystem(
const OperatingSystem('windows', ''),
OperatingSystem('windows', ''),
() {
overrideEnvironment(
{
Expand Down Expand Up @@ -70,7 +70,7 @@ void main() {
r'User home is loaded from $USERPROFILE on windows platforms when $HOME is not set.',
() {
overrideOperatingSystem(
const OperatingSystem('windows', ''),
OperatingSystem('windows', ''),
() {
overrideEnvironment(
{
Expand All @@ -97,7 +97,7 @@ void main() {
r'User home is loaded from $HOMEDRIVE$HOMEPATH on windows platforms when $HOME and $USERPROFILE are not set.',
() {
overrideOperatingSystem(
const OperatingSystem('windows', ''),
OperatingSystem('windows', ''),
() {
overrideEnvironment(
{
Expand All @@ -123,7 +123,7 @@ void main() {
r'The default config location can be overridden by the user on non-windows platforms.',
() {
overrideOperatingSystem(
const OperatingSystem('linux', ''),
OperatingSystem('linux', ''),
() {
overrideEnvironment(
{
Expand All @@ -149,7 +149,7 @@ void main() {
r'The default credentials location can be overridden by the user on non-windows platforms.',
() {
overrideOperatingSystem(
const OperatingSystem('linux', ''),
OperatingSystem('linux', ''),
() {
overrideEnvironment(
{
Expand All @@ -175,7 +175,7 @@ void main() {
r'The default credentials location can be overridden by the user on windows platforms.',
() {
overrideOperatingSystem(
const OperatingSystem('windows', ''),
OperatingSystem('windows', ''),
() {
overrideEnvironment(
{
Expand All @@ -201,7 +201,7 @@ void main() {
r'The default credentials location can be overridden by the user on windows platforms.',
() {
overrideOperatingSystem(
const OperatingSystem('windows', ''),
OperatingSystem('windows', ''),
() {
overrideEnvironment(
{
Expand All @@ -226,7 +226,7 @@ void main() {
test(r'The default profile can be overridden via environment variable.',
() {
overrideOperatingSystem(
const OperatingSystem('linux', ''),
OperatingSystem('linux', ''),
() {
overrideEnvironment(
{
Expand Down
2 changes: 1 addition & 1 deletion packages/aws_common/tool/generate_tests.dart
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ void main() {
output.writeln(
'''
test(r'${test.name}', () {
overrideOperatingSystem(const OperatingSystem('${test.platform.name}', ''), () {
overrideOperatingSystem(OperatingSystem('${test.platform.name}', ''), () {
overrideEnvironment({
${test.environment.entries.map((entry) => "'${entry.key}': r'${entry.value}',").join('\n')}
}, () {
Expand Down

0 comments on commit 0282976

Please sign in to comment.