SinaWeiboSdk c++test

void WeiboTestCase::postStatusesUploadUrlText()
{
 
UNITTestIDBuilderPolicy policy(gWeiboHelper, RIT_STATUS);
 
CPPUNIT_ASSERT(gWeiboHelper->getWeiboMethod()->postStatusesUploadUrlText(policy.asWords(), gWeiboTestUploadURL, 1) == WRC_OK);
 
standardOptionForWaiting(WBOPT_POST_STATUSES_UPLOAD_URL_TEXT);

}

#include <IWeiboMethod.hxx>

weibo::IWeiboMethod* getWeiboMethod();

gWeiboHelper->getWeiboMethod()->postStatusesUploadUrlText(policy.asWords(), gWeiboTestUploadURL, 1) == WRC_OK


virtual eWeiboResultCode postStatusesUpdate(const char* statusText, VariableParams* var = NULL, UserTaskInfo* pTask = NULL) = 0;

posted on 2013-01-23 18:33  冰河程序猿  阅读(189)  评论(0编辑  收藏  举报

导航