summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-01-02 17:58:58 +0100
committerDavid Robillard <d@drobilla.net>2021-01-02 17:58:58 +0100
commit45a608b57f75a6e1f1d8f33a6423da5d4947502b (patch)
treede315f0e39b2d32697d44c4018b934e1f582fc73 /test
parent045ba07debf32f643f5af7a3a4ee794f226ed22e (diff)
downloadraul-45a608b57f75a6e1f1d8f33a6423da5d4947502b.tar.gz
raul-45a608b57f75a6e1f1d8f33a6423da5d4947502b.tar.bz2
raul-45a608b57f75a6e1f1d8f33a6423da5d4947502b.zip
Make namespace name lowercase
Diffstat (limited to 'test')
-rw-r--r--test/array_test.cpp6
-rw-r--r--test/build_test.cpp26
-rw-r--r--test/double_buffer_test.cpp2
-rw-r--r--test/maid_test.cpp2
-rw-r--r--test/path_test.cpp4
-rw-r--r--test/ringbuffer_test.cpp2
-rw-r--r--test/sem_test.cpp8
-rw-r--r--test/socket_test.cpp6
-rw-r--r--test/symbol_test.cpp2
-rw-r--r--test/thread_test.cpp2
10 files changed, 30 insertions, 30 deletions
diff --git a/test/array_test.cpp b/test/array_test.cpp
index 8053732..b3cb905 100644
--- a/test/array_test.cpp
+++ b/test/array_test.cpp
@@ -23,7 +23,7 @@
int
main()
{
- Raul::Array<int> array1(32, 2);
+ raul::Array<int> array1(32, 2);
array1[0] = 42;
assert(array1[0] == 42);
@@ -38,12 +38,12 @@ main()
array1.alloc(8, 0);
assert(array1.size() == 8);
- Raul::Array<int> array2(array1);
+ raul::Array<int> array2(array1);
for (size_t i = 0; i < array1.size(); ++i) {
assert(array2[i] == array1[i]);
}
- Raul::Array<int> array3(8, 47);
+ raul::Array<int> array3(8, 47);
assert(array3[0] == 47);
assert(array3.size() == 8);
diff --git a/test/build_test.cpp b/test/build_test.cpp
index 72c9793..52559bf 100644
--- a/test/build_test.cpp
+++ b/test/build_test.cpp
@@ -29,36 +29,36 @@
# include "raul/Socket.hpp"
#endif
-class DeletableThing : public Raul::Deletable
+class DeletableThing : public raul::Deletable
{};
-class NonCopyableThing : public Raul::Noncopyable
+class NonCopyableThing : public raul::Noncopyable
{};
int
main()
{
- Raul::Array<int> array;
+ raul::Array<int> array;
DeletableThing deletable;
- Raul::DoubleBuffer<int> double_buffer(0);
- Raul::Maid maid;
+ raul::DoubleBuffer<int> double_buffer(0);
+ raul::Maid maid;
NonCopyableThing non_copyable;
- Raul::Path path;
- Raul::RingBuffer ring_buffer(64u);
- Raul::Semaphore semaphore(0u);
- Raul::Symbol symbol("foo");
+ raul::Path path;
+ raul::RingBuffer ring_buffer(64u);
+ raul::Semaphore semaphore(0u);
+ raul::Symbol symbol("foo");
try {
- Raul::Symbol bad_symbol("not a valid symbol!");
+ raul::Symbol bad_symbol("not a valid symbol!");
(void)bad_symbol;
- } catch (const Raul::Exception&) {
+ } catch (const raul::Exception&) {
}
#ifndef _WIN32
const char* cmd[] = {"echo"};
- Raul::Process::launch(cmd);
+ raul::Process::launch(cmd);
- Raul::Socket socket(Raul::Socket::Type::UNIX);
+ raul::Socket socket(raul::Socket::Type::UNIX);
(void)socket;
#endif
diff --git a/test/double_buffer_test.cpp b/test/double_buffer_test.cpp
index 0f58ea2..cb7fb97 100644
--- a/test/double_buffer_test.cpp
+++ b/test/double_buffer_test.cpp
@@ -22,7 +22,7 @@
int
main()
{
- Raul::DoubleBuffer<int> db(0);
+ raul::DoubleBuffer<int> db(0);
assert(db.get() == 0);
diff --git a/test/maid_test.cpp b/test/maid_test.cpp
index ee2ee7f..13284c2 100644
--- a/test/maid_test.cpp
+++ b/test/maid_test.cpp
@@ -25,7 +25,7 @@
#include <thread>
#include <vector>
-using Raul::Maid;
+using raul::Maid;
static const size_t n_threads = 8U;
static const size_t n_junk_per_thread = 1U << 16U;
diff --git a/test/path_test.cpp b/test/path_test.cpp
index 5681ec1..aeea0da 100644
--- a/test/path_test.cpp
+++ b/test/path_test.cpp
@@ -26,8 +26,8 @@
int
main()
{
- using Path = Raul::Path;
- using Symbol = Raul::Symbol;
+ using Path = raul::Path;
+ using Symbol = raul::Symbol;
assert(Path("/foo/bar").parent() == Path("/foo"));
assert(Path("/foo").parent() == Path("/"));
diff --git a/test/ringbuffer_test.cpp b/test/ringbuffer_test.cpp
index 6bf32ce..ee9af30 100644
--- a/test/ringbuffer_test.cpp
+++ b/test/ringbuffer_test.cpp
@@ -31,7 +31,7 @@ constexpr const auto MSG_SIZE = 20u;
namespace {
-using RingBuffer = Raul::RingBuffer;
+using RingBuffer = raul::RingBuffer;
struct Context {
std::unique_ptr<RingBuffer> ring{};
diff --git a/test/sem_test.cpp b/test/sem_test.cpp
index 2e8f8f8..9087b68 100644
--- a/test/sem_test.cpp
+++ b/test/sem_test.cpp
@@ -22,13 +22,13 @@
#include <thread>
static void
-wait_for_sem(Raul::Semaphore* sem)
+wait_for_sem(raul::Semaphore* sem)
{
sem->wait();
}
static void
-timed_wait_for_sem(Raul::Semaphore* sem)
+timed_wait_for_sem(raul::Semaphore* sem)
{
while (!sem->timed_wait(std::chrono::milliseconds(100))) {
}
@@ -37,7 +37,7 @@ timed_wait_for_sem(Raul::Semaphore* sem)
int
main()
{
- Raul::Semaphore sem(0);
+ raul::Semaphore sem(0);
assert(!sem.try_wait());
// Check that semaphore wakes up strict waiter
@@ -63,7 +63,7 @@ main()
assert(!sem.timed_wait(std::chrono::milliseconds(100)));
// Check that initial value works correctly
- Raul::Semaphore sem2(2);
+ raul::Semaphore sem2(2);
assert(sem2.wait());
assert(sem2.wait());
assert(!sem2.try_wait());
diff --git a/test/socket_test.cpp b/test/socket_test.cpp
index e1638d6..964a8ae 100644
--- a/test/socket_test.cpp
+++ b/test/socket_test.cpp
@@ -29,7 +29,7 @@
int
main()
{
- using Socket = Raul::Socket;
+ using Socket = raul::Socket;
std::string unix_uri("unix:///tmp/raul_test_sock");
std::string tcp_uri("tcp://127.0.0.1:12345");
@@ -88,8 +88,8 @@ main()
}
// This is the child (client) process
- Raul::Socket unix_sock(Socket::Type::UNIX);
- Raul::Socket tcp_sock(Socket::Type::TCP);
+ raul::Socket unix_sock(Socket::Type::UNIX);
+ raul::Socket tcp_sock(Socket::Type::TCP);
assert(unix_sock.connect(unix_uri));
assert(tcp_sock.connect(tcp_uri));
diff --git a/test/symbol_test.cpp b/test/symbol_test.cpp
index e52a294..1a73903 100644
--- a/test/symbol_test.cpp
+++ b/test/symbol_test.cpp
@@ -25,7 +25,7 @@
int
main()
{
- using Symbol = Raul::Symbol;
+ using Symbol = raul::Symbol;
std::list<std::string> names;
names.emplace_back("Dry/Wet Balance");
diff --git a/test/thread_test.cpp b/test/thread_test.cpp
index 8c2d13a..8cc59cf 100644
--- a/test/thread_test.cpp
+++ b/test/thread_test.cpp
@@ -24,7 +24,7 @@
namespace {
-using Semaphore = Raul::Semaphore;
+using Semaphore = raul::Semaphore;
thread_local int var(0);
std::atomic<int> n_errors(0);