Index: test/plugin/UserSettingsTest.cpp |
=================================================================== |
--- a/test/plugin/UserSettingsTest.cpp |
+++ b/test/plugin/UserSettingsTest.cpp |
@@ -44,11 +44,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); |
} |
} |
@@ -69,6 +64,7 @@ |
SingleMethodNameFound(L"GetDocumentationLink", 10); |
SingleMethodNameFound(L"IsAcceptableAdsEnabled", 11); |
SingleMethodNameFound(L"SetAcceptableAdsEnabled", 12); |
+ SingleMethodNameFound(L"IsUpdate", 13); |
} |
TEST(CPluginUserSettingsGetIDsOfNames, UndefinedMethodsMustNotBeFound) |
@@ -95,11 +91,6 @@ |
EXCEPINFO ex; |
HRESULT h = x.Invoke(id, IID_NULL, 0, DISPATCH_METHOD, ¶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); |
} |
} |
@@ -117,5 +108,5 @@ |
*/ |
TEST(CPluginUserSettingsInvoke, InvalidDispatchIdShouldOverflow) |
{ |
- InvokeInvalidDispatchId(13); |
+ InvokeInvalidDispatchId(14); |
} |