Esempio n. 1
0
TEST_F(GetSystemParametersInfoTest, should_get_some_oem_info) {
  const int SPI_GETOEMINFO = 258;
  rapi::SystemParametersInfoInput input(SPI_GETOEMINFO, expectedSize, true);
  ASSERT_PRED_FORMAT3(assertInvoke, sizeof(input), (LPBYTE)&input, S_OK);
  ASSERT_FALSE(IsBadStringPtrW((LPCWSTR)output, expectedSize));
  // Just so we can inspect the output value while debugging.
  LPCWSTR oemText = (LPCWSTR)output;
}
TEST_F(CopyTestTimeout, CopyTimeout)
{
    GError* error = NULL;
    int ret = 0;

    ret = gfalt_set_timeout(params, 1, &error);
    ASSERT_PRED_FORMAT2(AssertGfalSuccess, ret, error);

    ret = gfalt_copy_file(handle, params, source, destination, &error);
    ASSERT_PRED_FORMAT3(AssertGfalErrno, ret, error, ETIMEDOUT);
}
Esempio n. 3
0
TEST_F(GetSystemPowerStatusEx2Test, GetSystemPowerStatusEx2) {
  ASSERT_PRED_FORMAT3(assertInvoke, 0, NULL, S_OK);
}
Esempio n. 4
0
TEST_F(GetSystemParametersInfoTest, should_fail_with_invalid_input) {
  ASSERT_PRED_FORMAT3(assertInvoke, 0, NULL, E_INVALIDARG);
}
Esempio n. 5
0
TEST_F(GetDllVersionTest, GetDllVersion) {
  ASSERT_PRED_FORMAT3(assertInvoke, 0, NULL, S_OK);
  ASSERT_EQ(sizeof(TypeParam), output->cbSize);
}