Home
last modified time | relevance | path

Searched refs:MAX_TEXT_LEN (Results 1 - 9 of 9) sorted by relevance

/foundation/distributeddatamgr/udmf/framework/innerkitsimpl/test/unittest/
H A Dlink_test.cpp72 * @tc.desc: Abnormal testcase of Link,because url and description are equal to MAX_TEXT_LEN
78 const std::string url(MAX_TEXT_LEN, 'a'); in HWTEST_F()
79 const std::string description(MAX_TEXT_LEN, 'a'); in HWTEST_F()
89 * @tc.desc: Abnormal testcase of Link,because url and MAX_TEXT_LEN are equal
95 const std::string url(MAX_TEXT_LEN, 'a'); in HWTEST_F()
106 * @tc.desc: Abnormal testcase of Link,because description and MAX_TEXT_LEN are equal
113 const std::string description(MAX_TEXT_LEN, 'a'); in HWTEST_F()
123 * @tc.desc: Abnormal testcase of SetUrl,because url and MAX_TEXT_LEN are equal
129 const std::string url(MAX_TEXT_LEN, 'a'); in HWTEST_F()
138 * @tc.desc: Abnormal testcase of SetDescription,because url and MAX_TEXT_LEN ar
[all...]
H A Dplain_text_test.cpp57 * @tc.desc: Abnormal testcase of PlainText, because content is equal to MAX_TEXT_LEN
63 const std::string content(MAX_TEXT_LEN, 'a'); in HWTEST_F()
74 * @tc.desc: Abnormal testcase of SetContent, because text is equal to MAX_TEXT_LEN
80 const std::string text(MAX_TEXT_LEN, 'a'); in HWTEST_F()
89 * @tc.desc: Abnormal testcase of SetAbstract, because abstract is equal to MAX_TEXT_LEN
95 const std::string abstract(MAX_TEXT_LEN, 'a'); in HWTEST_F()
H A Dhtml_test.cpp57 * @tc.desc: Abnormal testcase of Html, because htmlContent and plainContent are equal to MAX_TEXT_LEN
63 const std::string htmlContent(MAX_TEXT_LEN, 'a'); in HWTEST_F()
64 const std::string plainContent(MAX_TEXT_LEN, 'a'); in HWTEST_F()
74 * @tc.desc: Abnormal testcase of Html, because plainContent and MAX_TEXT_LEN are equal
81 const std::string plainContent(MAX_TEXT_LEN, 'a'); in HWTEST_F()
91 * @tc.desc: Abnormal testcase of Html, because htmlContent and MAX_TEXT_LEN are equal
98 const std::string plainContent(MAX_TEXT_LEN, 'a'); in HWTEST_F()
140 * @tc.desc: Abnormal testcase of SetHtmlContent, because htmlContent and MAX_TEXT_LEN are equal
155 * @tc.desc: Abnormal testcase of SetPlainContent, because plainContent and MAX_TEXT_LEN are equal
/foundation/distributeddatamgr/udmf/framework/innerkitsimpl/data/
H A Dhtml.cpp27 if (plainContent.length() >= MAX_TEXT_LEN || htmlContent.length() >= MAX_TEXT_LEN) { in Html()
64 if (htmlContent.length() >= MAX_TEXT_LEN) { in SetHtmlContent()
80 if (plainContent.length() >= MAX_TEXT_LEN) { in SetPlainContent()
H A Dlink.cpp47 if (url.length() >= MAX_TEXT_LEN || description.length() >= MAX_TEXT_LEN) { in Link()
67 if (url.length() >= MAX_TEXT_LEN) { in SetUrl()
83 if (description.length() >= MAX_TEXT_LEN) { in SetDescription()
H A Dplain_text.cpp26 if (content.length() >= MAX_TEXT_LEN) { in PlainText()
63 if (text.length() >= MAX_TEXT_LEN) { in SetContent()
80 if (abstract.length() >= MAX_TEXT_LEN) { in SetAbstract()
/foundation/distributeddatamgr/udmf/interfaces/innerkits/data/
H A Dtext.h23 constexpr int MAX_TEXT_LEN = 20 * 1024 * 1024; member
/foundation/distributeddatamgr/pasteboard/framework/innerkits/src/
H A Dpaste_data_record.cpp31 constexpr int MAX_TEXT_LEN = 20 * 1024 * 1024; member
127 if (htmlText.length() >= MAX_TEXT_LEN) { in NewHtmlRecord()
140 if (text.length() >= MAX_TEXT_LEN) { in NewPlaintTextRecord()
/foundation/distributeddatamgr/pasteboard/interfaces/kits/napi/src/
H A Dnapi_pastedata.cpp34 constexpr int32_t MAX_TEXT_LEN = 20 * 1024 * 1024; member
519 } else if ((propName == "htmlText") && (propValue.size() <= MAX_TEXT_LEN)) { in SetStringProp()
521 } else if ((propName == "plainText") && (propValue.size() <= MAX_TEXT_LEN)) { in SetStringProp()

Completed in 7 milliseconds