Fix namespaces in security/
This commit is contained in:
parent
a9f24a74a2
commit
68481c10e6
12 changed files with 25 additions and 0 deletions
|
@ -6,6 +6,8 @@
|
|||
* See the COPYING-README file.
|
||||
*/
|
||||
|
||||
namespace Test\Security;
|
||||
|
||||
use \OC\Security\CertificateManager;
|
||||
|
||||
/**
|
|
@ -19,6 +19,8 @@
|
|||
*
|
||||
*/
|
||||
|
||||
namespace Test\Security;
|
||||
|
||||
use \OC\Security\Certificate;
|
||||
|
||||
class CertificateTest extends \Test\TestCase {
|
|
@ -19,6 +19,8 @@
|
|||
*
|
||||
*/
|
||||
|
||||
namespace Test\Security;
|
||||
|
||||
use \OCP\Security\ICrypto;
|
||||
use \OCP\IDBConnection;
|
||||
use \OC\Security\CredentialsManager;
|
|
@ -6,6 +6,8 @@
|
|||
* See the COPYING-README file.
|
||||
*/
|
||||
|
||||
namespace Test\Security;
|
||||
|
||||
use \OC\Security\Crypto;
|
||||
|
||||
class CryptoTest extends \Test\TestCase {
|
|
@ -6,6 +6,8 @@
|
|||
* See the COPYING-README file.
|
||||
*/
|
||||
|
||||
namespace Test\Security;
|
||||
|
||||
use OC\Security\Hasher;
|
||||
|
||||
/**
|
|
@ -6,6 +6,8 @@
|
|||
* See the COPYING-README file.
|
||||
*/
|
||||
|
||||
namespace Test\Security;
|
||||
|
||||
use \OC\Security\SecureRandom;
|
||||
|
||||
class SecureRandomTest extends \Test\TestCase {
|
|
@ -6,6 +6,8 @@
|
|||
* See the COPYING-README file.
|
||||
*/
|
||||
|
||||
namespace Test\Security;
|
||||
|
||||
use \OC\Security\TrustedDomainHelper;
|
||||
use OCP\IConfig;
|
||||
|
|
@ -19,6 +19,9 @@
|
|||
*
|
||||
*/
|
||||
|
||||
namespace Test\Security\CSP;
|
||||
|
||||
|
||||
use OC\Security\CSP\ContentSecurityPolicyManager;
|
||||
|
||||
class ContentSecurityPolicyManagerTest extends \Test\TestCase {
|
||||
|
|
|
@ -19,6 +19,8 @@
|
|||
*
|
||||
*/
|
||||
|
||||
namespace Test\Security\CSRF;
|
||||
|
||||
class CsrfTokenGeneratorTest extends \Test\TestCase {
|
||||
/** @var \OCP\Security\ISecureRandom */
|
||||
private $random;
|
||||
|
|
|
@ -19,6 +19,8 @@
|
|||
*
|
||||
*/
|
||||
|
||||
namespace Test\Security\CSRF;
|
||||
|
||||
class CsrfTokenManagerTest extends \Test\TestCase {
|
||||
/** @var \OC\Security\CSRF\CsrfTokenManager */
|
||||
private $csrfTokenManager;
|
||||
|
|
|
@ -19,6 +19,8 @@
|
|||
*
|
||||
*/
|
||||
|
||||
namespace Test\Security\CSRF;
|
||||
|
||||
class CsrfTokenTest extends \Test\TestCase {
|
||||
public function testGetEncryptedValue() {
|
||||
$csrfToken = new \OC\Security\CSRF\CsrfToken('MyCsrfToken');
|
||||
|
|
|
@ -19,6 +19,8 @@
|
|||
*
|
||||
*/
|
||||
|
||||
namespace Test\Security\CSRF\TokenStorage;
|
||||
|
||||
class SessionStorageTest extends \Test\TestCase {
|
||||
/** @var \OCP\ISession */
|
||||
private $session;
|
||||
|
|
Loading…
Reference in a new issue