import os
import platform
import shutil
import stat
import sys
from enum import Enum
THIS_DIR = os.path.abspath(os.path.dirname(__file__))
CHROMIUM_SRC_DIR = os.path.abspath(os.path.join(THIS_DIR, '../../../../..'))
if os.path.split(os.path.dirname(__file__))[1] != 'plugin':
CHROMIUM_SRC_DIR = os.path.abspath(os.path.join(THIS_DIR, '../../../..'))
PLUGIN_PROTOS_PATH = os.path.abspath(
os.path.join(CHROMIUM_SRC_DIR, 'ios/testing/plugin'))
PLUGIN_SERVICE_WORKER_COUNT = 10
PLUGIN_SERVICE_ADDRESS = 'localhost:32279'
MAX_RECORDED_COUNT = 3
VIDEO_RECORDER_PLUGIN_OPTIONS = Enum('video_recorder_plugin_options',
{'failed_only': 1})