Lines Matching defs:err
54 nsresult err;
56 err = nsServiceManager::GetService(kIMyServiceCID, NS_GET_IID(IMyService),
58 return err;
64 nsresult err = NS_OK;
67 err = myServ->Doit();
68 if (err != NS_OK) return err;
70 err = nsServiceManager::ReleaseService(kIMyServiceCID, myServ);
71 if (err != NS_OK) return err;
84 nsresult err;
85 err = BeginTest(testNumber);
86 if (err != NS_OK) return err;
87 err = EndTest(testNumber);
88 return err;
96 nsresult err;
102 err = nsServiceManager::UnregisterService(kIMyServiceCID);
103 if (err == NS_ERROR_SERVICE_NOT_AVAILABLE) {
107 return err;
120 nsresult err;
122 err = BeginTest(testNumber);
123 if (err != NS_OK) return err;
128 err = nsServiceManager::GetService(kIMyServiceCID, NS_GET_IID(IMyService),
130 if (err != NS_OK) return err;
132 err = AsyncShutdown(testNumber);
133 if (err != NS_OK) return err;
134 err = EndTest(testNumber);
137 err = nsServiceManager::ReleaseService(kIMyServiceCID, otherClient);
139 return err;
146 nsresult err;
149 err = NS_InitXPCOM2(nsnull, nsnull, nsnull);
150 if (NS_FAILED(err)) {
155 err = SimpleTest(++testNumber);
156 if (err != NS_OK)
159 err = AsyncNoShutdownTest(++testNumber);
160 if (err != NS_OK)