Add protocol brand contract

This commit is contained in:
2026-05-09 02:46:07 -04:00
parent 58a582682f
commit 6fc649d889
3 changed files with 25 additions and 7 deletions
+10 -1
View File
@@ -2,10 +2,16 @@ pub(crate) const PRODUCT_NAME: &str = "ELY Browser";
pub(crate) const FORMAL_PRODUCT_NAME: &str = "ELY Browser by Elydora";
pub(crate) const COMPANY_NAME: &str = "Elydora";
pub(crate) const SYNC_SERVICE_NAME: &str = "Elydora Cloud";
pub(crate) const DEEP_LINK_SCHEME: &str = "ely";
pub(crate) const DEEP_LINK_PREFIX: &str = "ely://";
pub(crate) const AUTH_CALLBACK_URL: &str = "ely://auth/callback";
#[cfg(test)]
mod tests {
use super::{COMPANY_NAME, FORMAL_PRODUCT_NAME, PRODUCT_NAME, SYNC_SERVICE_NAME};
use super::{
AUTH_CALLBACK_URL, COMPANY_NAME, DEEP_LINK_PREFIX, DEEP_LINK_SCHEME, FORMAL_PRODUCT_NAME,
PRODUCT_NAME, SYNC_SERVICE_NAME,
};
#[test]
fn brand_identity_matches_prd_names() {
@@ -13,5 +19,8 @@ mod tests {
assert_eq!(FORMAL_PRODUCT_NAME, "ELY Browser by Elydora");
assert_eq!(COMPANY_NAME, "Elydora");
assert_eq!(SYNC_SERVICE_NAME, "Elydora Cloud");
assert_eq!(DEEP_LINK_SCHEME, "ely");
assert_eq!(DEEP_LINK_PREFIX, "ely://");
assert_eq!(AUTH_CALLBACK_URL, "ely://auth/callback");
}
}