Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
413fe6c6
Kaydet (Commit)
413fe6c6
authored
Mar 12, 2013
tarafından
Chr. Rossmanith
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed RTL_CONSTASCII_(U)STRINGPARAM in unotest
Change-Id: Iba14ed093bcb97ac1f6996e62e6191cf09574bfd
üst
32ac07a9
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
30 additions
and
51 deletions
+30
-51
filters-test.cxx
unotest/source/cpp/filters-test.cxx
+3
-3
getargument.cxx
unotest/source/cpp/getargument.cxx
+1
-1
gettestargument.cxx
unotest/source/cpp/gettestargument.cxx
+1
-1
macros_test.cxx
unotest/source/cpp/macros_test.cxx
+1
-1
officeconnection.cxx
unotest/source/cpp/officeconnection.cxx
+17
-30
toabsolutefileurl.cxx
unotest/source/cpp/toabsolutefileurl.cxx
+6
-12
unoexceptionprotector.cxx
...ource/cpp/unoexceptionprotector/unoexceptionprotector.cxx
+1
-3
No files found.
unotest/source/cpp/filters-test.cxx
Dosyayı görüntüle @
413fe6c6
...
@@ -103,9 +103,9 @@ void FiltersTest::recursiveScan(filterStatus nExpected,
...
@@ -103,9 +103,9 @@ void FiltersTest::recursiveScan(filterStatus nExpected,
continue
;
continue
;
if
(
if
(
(
sURL
.
match
AsciiL
(
RTL_CONSTASCII_STRINGPARAM
(
"BID"
)
,
nLastSlash
+
1
))
||
(
sURL
.
match
(
"BID"
,
nLastSlash
+
1
))
||
(
sURL
.
match
AsciiL
(
RTL_CONSTASCII_STRINGPARAM
(
"CVE"
)
,
nLastSlash
+
1
))
||
(
sURL
.
match
(
"CVE"
,
nLastSlash
+
1
))
||
(
sURL
.
match
AsciiL
(
RTL_CONSTASCII_STRINGPARAM
(
"EDB"
)
,
nLastSlash
+
1
))
(
sURL
.
match
(
"EDB"
,
nLastSlash
+
1
))
)
)
{
{
bEncrypted
=
true
;
bEncrypted
=
true
;
...
...
unotest/source/cpp/getargument.cxx
Dosyayı görüntüle @
413fe6c6
...
@@ -33,7 +33,7 @@ namespace detail {
...
@@ -33,7 +33,7 @@ namespace detail {
bool
getArgument
(
rtl
::
OUString
const
&
name
,
rtl
::
OUString
*
value
)
{
bool
getArgument
(
rtl
::
OUString
const
&
name
,
rtl
::
OUString
*
value
)
{
OSL_ASSERT
(
value
!=
0
);
OSL_ASSERT
(
value
!=
0
);
return
rtl
::
Bootstrap
::
get
(
return
rtl
::
Bootstrap
::
get
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"arg-"
)
)
+
name
,
*
value
);
rtl
::
OUString
(
"arg-"
)
+
name
,
*
value
);
}
}
}
}
...
...
unotest/source/cpp/gettestargument.cxx
Dosyayı görüntüle @
413fe6c6
...
@@ -29,7 +29,7 @@ namespace test {
...
@@ -29,7 +29,7 @@ namespace test {
bool
getTestArgument
(
rtl
::
OUString
const
&
name
,
rtl
::
OUString
*
value
)
{
bool
getTestArgument
(
rtl
::
OUString
const
&
name
,
rtl
::
OUString
*
value
)
{
return
detail
::
getArgument
(
return
detail
::
getArgument
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"testarg."
)
)
+
name
,
value
);
rtl
::
OUString
(
"testarg."
)
+
name
,
value
);
}
}
}
}
...
...
unotest/source/cpp/macros_test.cxx
Dosyayı görüntüle @
413fe6c6
...
@@ -57,7 +57,7 @@ uno::Reference< com::sun::star::lang::XComponent > MacrosTest::loadFromDesktop(c
...
@@ -57,7 +57,7 @@ uno::Reference< com::sun::star::lang::XComponent > MacrosTest::loadFromDesktop(c
args
[
1
].
State
=
com
::
sun
::
star
::
beans
::
PropertyState_DIRECT_VALUE
;
args
[
1
].
State
=
com
::
sun
::
star
::
beans
::
PropertyState_DIRECT_VALUE
;
}
}
uno
::
Reference
<
com
::
sun
::
star
::
lang
::
XComponent
>
xComponent
=
xLoader
->
loadComponentFromURL
(
rURL
,
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"_default"
)
),
0
,
args
);
uno
::
Reference
<
com
::
sun
::
star
::
lang
::
XComponent
>
xComponent
=
xLoader
->
loadComponentFromURL
(
rURL
,
rtl
::
OUString
(
"_default"
),
0
,
args
);
rtl
::
OUString
sMessage
=
rtl
::
OUString
(
"loading failed: "
)
+
rURL
;
rtl
::
OUString
sMessage
=
rtl
::
OUString
(
"loading failed: "
)
+
rURL
;
CPPUNIT_ASSERT_MESSAGE
(
rtl
::
OUStringToOString
(
sMessage
,
RTL_TEXTENCODING_UTF8
).
getStr
(
),
xComponent
.
is
());
CPPUNIT_ASSERT_MESSAGE
(
rtl
::
OUStringToOString
(
sMessage
,
RTL_TEXTENCODING_UTF8
).
getStr
(
),
xComponent
.
is
());
return
xComponent
;
return
xComponent
;
...
...
unotest/source/cpp/officeconnection.cxx
Dosyayı görüntüle @
413fe6c6
...
@@ -50,45 +50,34 @@ void OfficeConnection::setUp() {
...
@@ -50,45 +50,34 @@ void OfficeConnection::setUp() {
rtl
::
OUString
argSoffice
;
rtl
::
OUString
argSoffice
;
CPPUNIT_ASSERT
(
CPPUNIT_ASSERT
(
detail
::
getArgument
(
detail
::
getArgument
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"soffice"
)
),
rtl
::
OUString
(
"soffice"
),
&
argSoffice
));
&
argSoffice
));
if
(
argSoffice
.
matchAsciiL
(
RTL_CONSTASCII_STRINGPARAM
(
"path:"
)))
{
if
(
argSoffice
.
match
(
"path:"
))
{
desc
=
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"pipe,name="
))
+
desc
=
"pipe,name="
+
uniquePipeName
(
rtl
::
OUString
(
"oootest"
));
uniquePipeName
(
rtl
::
OUString
noquickArg
(
"--quickstart=no"
);
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"oootest"
)));
rtl
::
OUString
nofirstArg
(
"--nofirststartwizard"
);
rtl
::
OUString
noquickArg
(
rtl
::
OUString
norestoreArg
(
"--norestore"
);
RTL_CONSTASCII_USTRINGPARAM
(
"--quickstart=no"
));
rtl
::
OUString
nologoArg
(
"--nologo"
);
rtl
::
OUString
nofirstArg
(
RTL_CONSTASCII_USTRINGPARAM
(
"--nofirststartwizard"
));
rtl
::
OUString
norestoreArg
(
RTL_CONSTASCII_USTRINGPARAM
(
"--norestore"
));
rtl
::
OUString
nologoArg
(
RTL_CONSTASCII_USTRINGPARAM
(
"--nologo"
));
// disable use of the unix standalone splash screen app for the
// disable use of the unix standalone splash screen app for the
// tests (probably not needed in combination with --headless?)
// tests (probably not needed in combination with --headless?)
rtl
::
OUString
headlessArg
(
RTL_CONSTASCII_USTRINGPARAM
(
"--headless"
));
rtl
::
OUString
headlessArg
(
"--headless"
);
rtl
::
OUString
acceptArg
(
rtl
::
OUString
acceptArg
(
"--accept="
+
desc
+
";urp"
);
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"--accept="
))
+
desc
+
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
";urp"
)));
rtl
::
OUString
argUser
;
rtl
::
OUString
argUser
;
CPPUNIT_ASSERT
(
CPPUNIT_ASSERT
(
detail
::
getArgument
(
detail
::
getArgument
(
rtl
::
OUString
(
"user"
),
&
argUser
));
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"user"
)),
&
argUser
));
rtl
::
OUString
userArg
(
rtl
::
OUString
userArg
(
rtl
::
OUString
(
rtl
::
OUString
(
"-env:UserInstallation="
)
+
RTL_CONSTASCII_USTRINGPARAM
(
"-env:UserInstallation="
))
+
toAbsoluteFileUrl
(
argUser
));
toAbsoluteFileUrl
(
argUser
));
rtl
::
OUString
jreArg
(
rtl
::
OUString
jreArg
(
RTL_CONSTASCII_USTRINGPARAM
(
"-env:UNO_JAVA_JFW_ENV_JREHOME=true"
));
"-env:UNO_JAVA_JFW_ENV_JREHOME=true"
);
rtl
::
OUString
classpathArg
(
rtl
::
OUString
classpathArg
(
"-env:UNO_JAVA_JFW_ENV_CLASSPATH=true"
);
RTL_CONSTASCII_USTRINGPARAM
(
"-env:UNO_JAVA_JFW_ENV_CLASSPATH=true"
));
rtl_uString
*
args
[]
=
{
rtl_uString
*
args
[]
=
{
noquickArg
.
pData
,
nofirstArg
.
pData
,
norestoreArg
.
pData
,
noquickArg
.
pData
,
nofirstArg
.
pData
,
norestoreArg
.
pData
,
nologoArg
.
pData
,
headlessArg
.
pData
,
acceptArg
.
pData
,
userArg
.
pData
,
nologoArg
.
pData
,
headlessArg
.
pData
,
acceptArg
.
pData
,
userArg
.
pData
,
jreArg
.
pData
,
classpathArg
.
pData
};
jreArg
.
pData
,
classpathArg
.
pData
};
rtl_uString
**
envs
=
0
;
rtl_uString
**
envs
=
0
;
rtl
::
OUString
argEnv
;
rtl
::
OUString
argEnv
;
if
(
detail
::
getArgument
(
if
(
detail
::
getArgument
(
rtl
::
OUString
(
"env"
),
&
argEnv
))
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"env"
)),
&
argEnv
))
{
{
envs
=
&
argEnv
.
pData
;
envs
=
&
argEnv
.
pData
;
}
}
...
@@ -99,7 +88,7 @@ void OfficeConnection::setUp() {
...
@@ -99,7 +88,7 @@ void OfficeConnection::setUp() {
argSoffice
.
copy
(
RTL_CONSTASCII_LENGTH
(
"path:"
))).
pData
,
argSoffice
.
copy
(
RTL_CONSTASCII_LENGTH
(
"path:"
))).
pData
,
args
,
SAL_N_ELEMENTS
(
args
),
0
,
0
,
0
,
envs
,
envs
==
0
?
0
:
1
,
args
,
SAL_N_ELEMENTS
(
args
),
0
,
0
,
0
,
envs
,
envs
==
0
?
0
:
1
,
&
process_
));
&
process_
));
}
else
if
(
argSoffice
.
match
AsciiL
(
RTL_CONSTASCII_STRINGPARAM
(
"connect:"
)
))
{
}
else
if
(
argSoffice
.
match
(
"connect:"
))
{
desc
=
argSoffice
.
copy
(
RTL_CONSTASCII_LENGTH
(
"connect:"
));
desc
=
argSoffice
.
copy
(
RTL_CONSTASCII_LENGTH
(
"connect:"
));
}
else
{
}
else
{
CPPUNIT_FAIL
(
CPPUNIT_FAIL
(
...
@@ -111,11 +100,9 @@ void OfficeConnection::setUp() {
...
@@ -111,11 +100,9 @@ void OfficeConnection::setUp() {
context_
=
context_
=
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>
(
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>
(
resolver
->
resolve
(
resolver
->
resolve
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"uno:"
)
)
+
rtl
::
OUString
(
"uno:"
)
+
desc
+
desc
+
rtl
::
OUString
(
rtl
::
OUString
(
";urp;StarOffice.ComponentContext"
)),
RTL_CONSTASCII_USTRINGPARAM
(
";urp;StarOffice.ComponentContext"
))),
css
::
uno
::
UNO_QUERY_THROW
);
css
::
uno
::
UNO_QUERY_THROW
);
break
;
break
;
}
catch
(
css
::
connection
::
NoConnectException
&
)
{}
}
catch
(
css
::
connection
::
NoConnectException
&
)
{}
...
...
unotest/source/cpp/toabsolutefileurl.cxx
Dosyayı görüntüle @
413fe6c6
...
@@ -34,9 +34,7 @@ rtl::OUString toAbsoluteFileUrl(rtl::OUString const & relativePathname) {
...
@@ -34,9 +34,7 @@ rtl::OUString toAbsoluteFileUrl(rtl::OUString const & relativePathname) {
oslProcessError
e1
=
osl_getProcessWorkingDir
(
&
cwd
.
pData
);
oslProcessError
e1
=
osl_getProcessWorkingDir
(
&
cwd
.
pData
);
if
(
e1
!=
osl_Process_E_None
)
{
if
(
e1
!=
osl_Process_E_None
)
{
throw
css
::
uno
::
RuntimeException
(
throw
css
::
uno
::
RuntimeException
(
(
rtl
::
OUString
(
(
rtl
::
OUString
(
"osl_getProcessWorkingDir failed with "
)
+
RTL_CONSTASCII_USTRINGPARAM
(
"osl_getProcessWorkingDir failed with "
))
+
OUString
::
number
(
e1
)),
OUString
::
number
(
e1
)),
css
::
uno
::
Reference
<
css
::
uno
::
XInterface
>
());
css
::
uno
::
Reference
<
css
::
uno
::
XInterface
>
());
}
}
...
@@ -45,11 +43,9 @@ rtl::OUString toAbsoluteFileUrl(rtl::OUString const & relativePathname) {
...
@@ -45,11 +43,9 @@ rtl::OUString toAbsoluteFileUrl(rtl::OUString const & relativePathname) {
relativePathname
,
url
);
relativePathname
,
url
);
if
(
e2
!=
osl
::
FileBase
::
E_None
)
{
if
(
e2
!=
osl
::
FileBase
::
E_None
)
{
throw
css
::
uno
::
RuntimeException
(
throw
css
::
uno
::
RuntimeException
(
(
rtl
::
OUString
(
(
rtl
::
OUString
(
"osl::FileBase::getFileURLFromSystemPath("
)
+
RTL_CONSTASCII_USTRINGPARAM
(
"osl::FileBase::getFileURLFromSystemPath("
))
+
relativePathname
+
relativePathname
+
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
") failed with "
)
)
+
rtl
::
OUString
(
") failed with "
)
+
OUString
::
number
(
e2
)),
OUString
::
number
(
e2
)),
css
::
uno
::
Reference
<
css
::
uno
::
XInterface
>
());
css
::
uno
::
Reference
<
css
::
uno
::
XInterface
>
());
}
}
...
@@ -57,11 +53,9 @@ rtl::OUString toAbsoluteFileUrl(rtl::OUString const & relativePathname) {
...
@@ -57,11 +53,9 @@ rtl::OUString toAbsoluteFileUrl(rtl::OUString const & relativePathname) {
e2
=
osl
::
FileBase
::
getAbsoluteFileURL
(
cwd
,
url
,
absUrl
);
e2
=
osl
::
FileBase
::
getAbsoluteFileURL
(
cwd
,
url
,
absUrl
);
if
(
e2
!=
osl
::
FileBase
::
E_None
)
{
if
(
e2
!=
osl
::
FileBase
::
E_None
)
{
throw
css
::
uno
::
RuntimeException
(
throw
css
::
uno
::
RuntimeException
(
(
rtl
::
OUString
(
(
rtl
::
OUString
(
"osl::FileBase::getAbsoluteFileURL("
)
+
RTL_CONSTASCII_USTRINGPARAM
(
cwd
+
rtl
::
OUString
(
", "
)
+
url
+
"osl::FileBase::getAbsoluteFileURL("
))
+
rtl
::
OUString
(
") failed with "
)
+
cwd
+
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
", "
))
+
url
+
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
") failed with "
))
+
OUString
::
number
(
e2
)),
OUString
::
number
(
e2
)),
css
::
uno
::
Reference
<
css
::
uno
::
XInterface
>
());
css
::
uno
::
Reference
<
css
::
uno
::
XInterface
>
());
}
}
...
...
unotest/source/cpp/unoexceptionprotector/unoexceptionprotector.cxx
Dosyayı görüntüle @
413fe6c6
...
@@ -68,9 +68,7 @@ bool Prot::protect(
...
@@ -68,9 +68,7 @@ bool Prot::protect(
context
,
context
,
CppUnit
::
Message
(
CppUnit
::
Message
(
convert
(
convert
(
rtl
::
OUString
(
rtl
::
OUString
(
"An uncaught exception of type "
)
RTL_CONSTASCII_USTRINGPARAM
(
"An uncaught exception of type "
))
+
a
.
getValueTypeName
()),
+
a
.
getValueTypeName
()),
convert
(
e
.
Message
)));
convert
(
e
.
Message
)));
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment