提交 2aeb6f6f 编写于 作者: F fangyun

fixed managed event coverage

Signed-off-by: Nfangyun <fangyun2@huawei.com>
上级 13fa4ab2
...@@ -13,6 +13,8 @@ ...@@ -13,6 +13,8 @@
* limitations under the License. * limitations under the License.
*/ */
import enterpriseDeviceManager from '@ohos.enterpriseDeviceManager'
const WANT1 = { const WANT1 = {
bundleName: "com.example.extensionzerotest", bundleName: "com.example.extensionzerotest",
abilityName: "com.example.extensionzerotest.EnterpriseAdminAbility" abilityName: "com.example.extensionzerotest.EnterpriseAdminAbility"
...@@ -39,7 +41,10 @@ const DEFAULT_USER_ID = 100; ...@@ -39,7 +41,10 @@ const DEFAULT_USER_ID = 100;
const TEST_USER_ID = 101; const TEST_USER_ID = 101;
const ERR_USER_ID = 102; const ERR_USER_ID = 102;
const SUBSCRIBE_EVENTS: Array<number> = [0,1]; const SUBSCRIBE_EVENTS: Array<enterpriseDeviceManager.ManagedEvent> = [
enterpriseDeviceManager.ManagedEvent.MANAGED_EVENT_BUNDLE_ADDED,
enterpriseDeviceManager.ManagedEvent.MANAGED_EVENT_BUNDLE_REMOVED
];
const SUBSCRIBE_INVALID_EVENTS: Array<number> = [20,21]; const SUBSCRIBE_INVALID_EVENTS: Array<number> = [20,21];
export { export {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册