Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr committed Dec 29, 2023
1 parent a89db1b commit 6d7871a
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 48 deletions.
19 changes: 7 additions & 12 deletions crates/tests/component/src/bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,22 +275,17 @@ impl ::windows_core::RuntimeName for Class {
unsafe impl ::core::marker::Send for Class {}
unsafe impl ::core::marker::Sync for Class {}
#[repr(transparent)]
#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
#[derive(
::core::cmp::PartialEq,
::core::cmp::Eq,
::core::marker::Copy,
::core::clone::Clone,
::core::default::Default,
)]
pub struct Flags(pub u32);
impl Flags {
pub const Ok: Self = Self(0u32);
}
impl ::core::marker::Copy for Flags {}
impl ::core::clone::Clone for Flags {
fn clone(&self) -> Self {
*self
}
}
impl ::core::default::Default for Flags {
fn default() -> Self {
Self(0)
}
}
impl ::windows_core::TypeKind for Flags {
type TypeKind = ::windows_core::CopyType;
}
Expand Down
19 changes: 7 additions & 12 deletions crates/tests/component_client/src/bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,22 +243,17 @@ impl ::windows_core::RuntimeName for Class {
unsafe impl ::core::marker::Send for Class {}
unsafe impl ::core::marker::Sync for Class {}
#[repr(transparent)]
#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
#[derive(
::core::cmp::PartialEq,
::core::cmp::Eq,
::core::marker::Copy,
::core::clone::Clone,
::core::default::Default,
)]
pub struct Flags(pub u32);
impl Flags {
pub const Ok: Self = Self(0u32);
}
impl ::core::marker::Copy for Flags {}
impl ::core::clone::Clone for Flags {
fn clone(&self) -> Self {
*self
}
}
impl ::core::default::Default for Flags {
fn default() -> Self {
Self(0)
}
}
impl ::windows_core::TypeKind for Flags {
type TypeKind = ::windows_core::CopyType;
}
Expand Down
19 changes: 7 additions & 12 deletions crates/tests/standalone/src/b_calendar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1319,7 +1319,13 @@ impl ::core::default::Default for DateTime {
}
}
#[repr(transparent)]
#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
#[derive(
::core::cmp::PartialEq,
::core::cmp::Eq,
::core::marker::Copy,
::core::clone::Clone,
::core::default::Default,
)]
pub struct DayOfWeek(pub i32);
impl DayOfWeek {
pub const Sunday: Self = Self(0i32);
Expand All @@ -1330,17 +1336,6 @@ impl DayOfWeek {
pub const Friday: Self = Self(5i32);
pub const Saturday: Self = Self(6i32);
}
impl ::core::marker::Copy for DayOfWeek {}
impl ::core::clone::Clone for DayOfWeek {
fn clone(&self) -> Self {
*self
}
}
impl ::core::default::Default for DayOfWeek {
fn default() -> Self {
Self(0)
}
}
impl ::windows_core::TypeKind for DayOfWeek {
type TypeKind = ::windows_core::CopyType;
}
Expand Down
19 changes: 7 additions & 12 deletions crates/tests/standalone/src/b_win_enumerator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,14 @@
clippy::all
)]
#[repr(transparent)]
#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
#[derive(
::core::cmp::PartialEq,
::core::cmp::Eq,
::core::marker::Copy,
::core::clone::Clone,
::core::default::Default,
)]
pub struct WAIT_EVENT(pub u32);
impl ::core::marker::Copy for WAIT_EVENT {}
impl ::core::clone::Clone for WAIT_EVENT {
fn clone(&self) -> Self {
*self
}
}
impl ::core::default::Default for WAIT_EVENT {
fn default() -> Self {
Self(0)
}
}
impl ::windows_core::TypeKind for WAIT_EVENT {
type TypeKind = ::windows_core::CopyType;
}
Expand Down

0 comments on commit 6d7871a

Please sign in to comment.