Index: test/plugin/UserSettingsTest.cpp |
=================================================================== |
--- a/test/plugin/UserSettingsTest.cpp |
+++ b/test/plugin/UserSettingsTest.cpp |
@@ -17,7 +17,6 @@ |
#include <gtest/gtest.h> |
-#include <OAIdl.h> |
#include "../../src/plugin/PluginUserSettings.h" |
//---------------------------------- |
@@ -46,11 +45,6 @@ |
DISPID ids[1]; |
HRESULT h = x.GetIDsOfNames(IID_NULL, names, 1, 0, ids); |
ASSERT_NE(S_OK, h); |
- // The old version returns a nonstandard error code. |
- if (h == DISP_E_MEMBERNOTFOUND) |
- { |
- return; |
- } |
EXPECT_EQ(DISP_E_UNKNOWNNAME, h); |
} |
} |
@@ -97,11 +91,6 @@ |
EXCEPINFO ex; |
HRESULT h = x.Invoke(-1, IID_NULL, 0, 0, ¶ms, nullptr, &ex, nullptr); |
ASSERT_NE(S_OK, h); |
- // The old version returns a nonstandard error code. |
- if (h == DISP_E_BADINDEX) |
- { |
- return; |
- } |
EXPECT_EQ(DISP_E_MEMBERNOTFOUND, h); |
} |
} |