Consistent 'Test' suffix in libprocess test status names. Review: https://reviews.apache.org/r/35769
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/63cdc75c Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/63cdc75c Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/63cdc75c Branch: refs/heads/master Commit: 63cdc75c5915cba05ba083001a4fddbc3e34abe2 Parents: 6142d39 Author: Michael Park <[email protected]> Authored: Mon Jul 6 12:37:11 2015 -0700 Committer: Benjamin Mahler <[email protected]> Committed: Mon Jul 6 14:29:39 2015 -0700 ---------------------------------------------------------------------- 3rdparty/libprocess/src/tests/benchmarks.cpp | 4 +- 3rdparty/libprocess/src/tests/decoder_tests.cpp | 12 +-- 3rdparty/libprocess/src/tests/encoder_tests.cpp | 4 +- 3rdparty/libprocess/src/tests/http_tests.cpp | 26 +++--- 3rdparty/libprocess/src/tests/io_tests.cpp | 12 +-- 3rdparty/libprocess/src/tests/limiter_tests.cpp | 6 +- 3rdparty/libprocess/src/tests/metrics_tests.cpp | 16 ++-- 3rdparty/libprocess/src/tests/mutex_tests.cpp | 6 +- 3rdparty/libprocess/src/tests/owned_tests.cpp | 8 +- 3rdparty/libprocess/src/tests/process_tests.cpp | 94 ++++++++++---------- 3rdparty/libprocess/src/tests/queue_tests.cpp | 6 +- 3rdparty/libprocess/src/tests/reap_tests.cpp | 6 +- .../libprocess/src/tests/sequence_tests.cpp | 8 +- 3rdparty/libprocess/src/tests/shared_tests.cpp | 8 +- .../libprocess/src/tests/statistics_tests.cpp | 6 +- 3rdparty/libprocess/src/tests/system_tests.cpp | 2 +- .../libprocess/src/tests/timeseries_tests.cpp | 6 +- 17 files changed, 115 insertions(+), 115 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/63cdc75c/3rdparty/libprocess/src/tests/benchmarks.cpp ---------------------------------------------------------------------- diff --git a/3rdparty/libprocess/src/tests/benchmarks.cpp b/3rdparty/libprocess/src/tests/benchmarks.cpp index 49d96ea..97c81b8 100644 --- a/3rdparty/libprocess/src/tests/benchmarks.cpp +++ b/3rdparty/libprocess/src/tests/benchmarks.cpp @@ -220,7 +220,7 @@ private: // Launches many clients against a central server and measures // client throughput. -TEST(Process, Process_BENCHMARK_ClientServer) +TEST(ProcessTest, Process_BENCHMARK_ClientServer) { const size_t numRequests = 10000; const size_t concurrency = 250; @@ -316,7 +316,7 @@ public: // large number of links by creating many linker-linkee pairs. And // then, we introduce a large amount of ephemeral process exits as // well as event dispatches. -TEST(Process, Process_BENCHMARK_LargeNumberOfLinks) +TEST(ProcessTest, Process_BENCHMARK_LargeNumberOfLinks) { int links = 5000; int iterations = 10000; http://git-wip-us.apache.org/repos/asf/mesos/blob/63cdc75c/3rdparty/libprocess/src/tests/decoder_tests.cpp ---------------------------------------------------------------------- diff --git a/3rdparty/libprocess/src/tests/decoder_tests.cpp b/3rdparty/libprocess/src/tests/decoder_tests.cpp index f8fa798..011adaf 100644 --- a/3rdparty/libprocess/src/tests/decoder_tests.cpp +++ b/3rdparty/libprocess/src/tests/decoder_tests.cpp @@ -17,7 +17,7 @@ using std::string; using process::network::Socket; -TEST(Decoder, Request) +TEST(DecoderTest, Request) { Try<Socket> socket = Socket::create(); ASSERT_SOME(socket); @@ -55,7 +55,7 @@ TEST(Decoder, Request) } -TEST(Decoder, RequestHeaderContinuation) +TEST(DecoderTest, RequestHeaderContinuation) { Try<Socket> socket = Socket::create(); ASSERT_SOME(socket); @@ -81,7 +81,7 @@ TEST(Decoder, RequestHeaderContinuation) // This is expected to fail for now, see my TODO(bmahler) on http::Request. -TEST(Decoder, DISABLED_RequestHeaderCaseInsensitive) +TEST(DecoderTest, DISABLED_RequestHeaderCaseInsensitive) { Try<Socket> socket = Socket::create(); ASSERT_SOME(socket); @@ -107,7 +107,7 @@ TEST(Decoder, DISABLED_RequestHeaderCaseInsensitive) } -TEST(Decoder, Response) +TEST(DecoderTest, Response) { ResponseDecoder decoder; @@ -135,7 +135,7 @@ TEST(Decoder, Response) } -TEST(Decoder, StreamingResponse) +TEST(DecoderTest, StreamingResponse) { StreamingResponseDecoder decoder; @@ -179,7 +179,7 @@ TEST(Decoder, StreamingResponse) } -TEST(Decoder, StreamingResponseFailure) +TEST(DecoderTest, StreamingResponseFailure) { StreamingResponseDecoder decoder; http://git-wip-us.apache.org/repos/asf/mesos/blob/63cdc75c/3rdparty/libprocess/src/tests/encoder_tests.cpp ---------------------------------------------------------------------- diff --git a/3rdparty/libprocess/src/tests/encoder_tests.cpp b/3rdparty/libprocess/src/tests/encoder_tests.cpp index 44996f0..9fccab1 100644 --- a/3rdparty/libprocess/src/tests/encoder_tests.cpp +++ b/3rdparty/libprocess/src/tests/encoder_tests.cpp @@ -20,7 +20,7 @@ using std::string; using std::vector; -TEST(Encoder, Response) +TEST(EncoderTest, Response) { Request request; const OK response("body"); @@ -47,7 +47,7 @@ TEST(Encoder, Response) } -TEST(Encoder, AcceptableEncodings) +TEST(EncoderTest, AcceptableEncodings) { // Create requests that do not accept gzip encoding. vector<Request> requests(7); http://git-wip-us.apache.org/repos/asf/mesos/blob/63cdc75c/3rdparty/libprocess/src/tests/http_tests.cpp ---------------------------------------------------------------------- diff --git a/3rdparty/libprocess/src/tests/http_tests.cpp b/3rdparty/libprocess/src/tests/http_tests.cpp index 8dae59b..0514c72 100644 --- a/3rdparty/libprocess/src/tests/http_tests.cpp +++ b/3rdparty/libprocess/src/tests/http_tests.cpp @@ -90,7 +90,7 @@ public: }; -TEST(HTTP, Auth) +TEST(HTTPTest, Auth) { Http http; @@ -125,7 +125,7 @@ TEST(HTTP, Auth) } -TEST(HTTP, Endpoints) +TEST(HTTPTest, Endpoints) { Http http; @@ -181,7 +181,7 @@ TEST(HTTP, Endpoints) } -TEST(HTTP, PipeEOF) +TEST(HTTPTest, PipeEOF) { http::Pipe pipe; http::Pipe::Reader reader = pipe.reader(); @@ -231,7 +231,7 @@ TEST(HTTP, PipeEOF) } -TEST(HTTP, PipeFailure) +TEST(HTTPTest, PipeFailure) { http::Pipe pipe; http::Pipe::Reader reader = pipe.reader(); @@ -263,7 +263,7 @@ TEST(HTTP, PipeFailure) -TEST(HTTP, PipeReaderCloses) +TEST(HTTPTest, PipeReaderCloses) { http::Pipe pipe; http::Pipe::Reader reader = pipe.reader(); @@ -297,7 +297,7 @@ TEST(HTTP, PipeReaderCloses) } -TEST(HTTP, Encode) +TEST(HTTPTest, Encode) { string unencoded = "a$&+,/:;=?@ \"<>#%{}|\\^~[]`\x19\x80\xFF"; unencoded += string("\x00", 1); // Add a null byte to the end. @@ -321,7 +321,7 @@ TEST(HTTP, Encode) } -TEST(HTTP, PathParse) +TEST(HTTPTest, PathParse) { const string pattern = "/books/{isbn}/chapters/{chapter}"; @@ -394,7 +394,7 @@ http::Response validateGetWithQuery(const http::Request& request) } -TEST(HTTP, Get) +TEST(HTTPTest, Get) { Http http; @@ -417,7 +417,7 @@ TEST(HTTP, Get) } -TEST(HTTP, StreamingGetComplete) +TEST(HTTPTest, StreamingGetComplete) { Http http; @@ -459,7 +459,7 @@ TEST(HTTP, StreamingGetComplete) } -TEST(HTTP, StreamingGetFailure) +TEST(HTTPTest, StreamingGetFailure) { Http http; @@ -513,7 +513,7 @@ http::Response validatePost(const http::Request& request) } -TEST(HTTP, Post) +TEST(HTTPTest, Post) { Http http; @@ -551,7 +551,7 @@ TEST(HTTP, Post) } -TEST(HTTP, QueryEncodeDecode) +TEST(HTTPTest, QueryEncodeDecode) { // If we use Type<a, b> directly inside a macro without surrounding // parenthesis the comma will be eaten by the macro rather than the @@ -592,7 +592,7 @@ TEST(HTTP, QueryEncodeDecode) } -TEST(HTTP, CaseInsensitiveHeaders) +TEST(HTTPTest, CaseInsensitiveHeaders) { http::Request request; request.headers["Content-Length"] = "20"; http://git-wip-us.apache.org/repos/asf/mesos/blob/63cdc75c/3rdparty/libprocess/src/tests/io_tests.cpp ---------------------------------------------------------------------- diff --git a/3rdparty/libprocess/src/tests/io_tests.cpp b/3rdparty/libprocess/src/tests/io_tests.cpp index dde23b9..ac8d7f2 100644 --- a/3rdparty/libprocess/src/tests/io_tests.cpp +++ b/3rdparty/libprocess/src/tests/io_tests.cpp @@ -16,7 +16,7 @@ using namespace process; using std::string; -TEST(IO, Poll) +TEST(IOTest, Poll) { ASSERT_TRUE(GTEST_IS_THREADSAFE); @@ -40,7 +40,7 @@ TEST(IO, Poll) } -TEST(IO, Read) +TEST(IOTest, Read) { ASSERT_TRUE(GTEST_IS_THREADSAFE); @@ -108,7 +108,7 @@ TEST(IO, Read) } -TEST(IO, BufferedRead) +TEST(IOTest, BufferedRead) { // 128 Bytes. string data = @@ -161,7 +161,7 @@ TEST(IO, BufferedRead) } -TEST(IO, Write) +TEST(IOTest, Write) { ASSERT_TRUE(GTEST_IS_THREADSAFE); @@ -202,7 +202,7 @@ TEST(IO, Write) } -TEST(IO, DISABLED_BlockingWrite) +TEST(IOTest, DISABLED_BlockingWrite) { ASSERT_TRUE(GTEST_IS_THREADSAFE); @@ -277,7 +277,7 @@ TEST(IO, DISABLED_BlockingWrite) } -TEST(IO, Redirect) +TEST(IOTest, Redirect) { ASSERT_TRUE(GTEST_IS_THREADSAFE); http://git-wip-us.apache.org/repos/asf/mesos/blob/63cdc75c/3rdparty/libprocess/src/tests/limiter_tests.cpp ---------------------------------------------------------------------- diff --git a/3rdparty/libprocess/src/tests/limiter_tests.cpp b/3rdparty/libprocess/src/tests/limiter_tests.cpp index 03bf3f0..8867b4f 100644 --- a/3rdparty/libprocess/src/tests/limiter_tests.cpp +++ b/3rdparty/libprocess/src/tests/limiter_tests.cpp @@ -12,7 +12,7 @@ using namespace process; -TEST(Limiter, Acquire) +TEST(LimiterTest, Acquire) { ASSERT_TRUE(GTEST_IS_THREADSAFE); @@ -42,7 +42,7 @@ TEST(Limiter, Acquire) // In this test 4 permits are given, but the 2nd permit's acquire // is immediately discarded. So, 1st, 3rd and 4th permits should // be acquired according to the rate limit. -TEST(Limiter, DiscardMiddle) +TEST(LimiterTest, DiscardMiddle) { ASSERT_TRUE(GTEST_IS_THREADSAFE); @@ -80,7 +80,7 @@ TEST(Limiter, DiscardMiddle) // In this test 2 permits are initially given, but the 2nd permit's // future is immediately discarded. Then the 3rd permit is given. So, // 1st and 3rd permits should be acquired according to the rate limit. -TEST(Limiter, DiscardLast) +TEST(LimiterTest, DiscardLast) { ASSERT_TRUE(GTEST_IS_THREADSAFE); http://git-wip-us.apache.org/repos/asf/mesos/blob/63cdc75c/3rdparty/libprocess/src/tests/metrics_tests.cpp ---------------------------------------------------------------------- diff --git a/3rdparty/libprocess/src/tests/metrics_tests.cpp b/3rdparty/libprocess/src/tests/metrics_tests.cpp index 8ce1e6e..160f0d7 100644 --- a/3rdparty/libprocess/src/tests/metrics_tests.cpp +++ b/3rdparty/libprocess/src/tests/metrics_tests.cpp @@ -52,7 +52,7 @@ public: }; -TEST(Metrics, Counter) +TEST(MetricsTest, Counter) { Counter counter("test/counter"); @@ -78,7 +78,7 @@ TEST(Metrics, Counter) } -TEST(Metrics, Gauge) +TEST(MetricsTest, Gauge) { ASSERT_TRUE(GTEST_IS_THREADSAFE); @@ -109,7 +109,7 @@ TEST(Metrics, Gauge) } -TEST(Metrics, Statistics) +TEST(MetricsTest, Statistics) { Counter counter("test/counter", process::TIME_SERIES_WINDOW); @@ -143,7 +143,7 @@ TEST(Metrics, Statistics) } -TEST(Metrics, Snapshot) +TEST(MetricsTest, Snapshot) { ASSERT_TRUE(GTEST_IS_THREADSAFE); @@ -215,7 +215,7 @@ TEST(Metrics, Snapshot) } -TEST(Metrics, SnapshotTimeout) +TEST(MetricsTest, SnapshotTimeout) { ASSERT_TRUE(GTEST_IS_THREADSAFE); @@ -318,7 +318,7 @@ TEST(Metrics, SnapshotTimeout) // Ensures that the aggregate statistics are correct in the snapshot. -TEST(Metrics, SnapshotStatistics) +TEST(MetricsTest, SnapshotStatistics) { UPID upid("metrics", process::address()); @@ -381,7 +381,7 @@ TEST(Metrics, SnapshotStatistics) } -TEST(Metrics, Timer) +TEST(MetricsTest, Timer) { metrics::Timer<Nanoseconds> timer("test/timer"); EXPECT_EQ("test/timer_ns", timer.name()); @@ -415,7 +415,7 @@ static Future<int> advanceAndReturn() } -TEST(Metrics, AsyncTimer) +TEST(MetricsTest, AsyncTimer) { metrics::Timer<Microseconds> t("test/timer"); EXPECT_EQ("test/timer_us", t.name()); http://git-wip-us.apache.org/repos/asf/mesos/blob/63cdc75c/3rdparty/libprocess/src/tests/mutex_tests.cpp ---------------------------------------------------------------------- diff --git a/3rdparty/libprocess/src/tests/mutex_tests.cpp b/3rdparty/libprocess/src/tests/mutex_tests.cpp index 63d1b39..189f594 100644 --- a/3rdparty/libprocess/src/tests/mutex_tests.cpp +++ b/3rdparty/libprocess/src/tests/mutex_tests.cpp @@ -5,7 +5,7 @@ using namespace process; -TEST(Mutex, Lock) +TEST(MutexTest, Lock) { Mutex mutex; @@ -19,7 +19,7 @@ TEST(Mutex, Lock) } -TEST(Mutex, Block) +TEST(MutexTest, Block) { Mutex mutex; @@ -38,7 +38,7 @@ TEST(Mutex, Block) } -TEST(Mutex, Queue) +TEST(MutexTest, Queue) { Mutex mutex; http://git-wip-us.apache.org/repos/asf/mesos/blob/63cdc75c/3rdparty/libprocess/src/tests/owned_tests.cpp ---------------------------------------------------------------------- diff --git a/3rdparty/libprocess/src/tests/owned_tests.cpp b/3rdparty/libprocess/src/tests/owned_tests.cpp index 50025d9..ba10b26 100644 --- a/3rdparty/libprocess/src/tests/owned_tests.cpp +++ b/3rdparty/libprocess/src/tests/owned_tests.cpp @@ -17,7 +17,7 @@ private: }; -TEST(Owned, Access) +TEST(OwnedTest, Access) { Foo* foo = new Foo(); foo->set(42); @@ -36,7 +36,7 @@ TEST(Owned, Access) } -TEST(Owned, Null) +TEST(OwnedTest, Null) { Owned<Foo> owned; Owned<Foo> owned2(NULL); @@ -46,7 +46,7 @@ TEST(Owned, Null) } -TEST(Owned, Share) +TEST(OwnedTest, Share) { Foo* foo = new Foo(); foo->set(42); @@ -80,7 +80,7 @@ TEST(Owned, Share) } -TEST(Owned, Release) +TEST(OwnedTest, Release) { Foo* foo = new Foo(); foo->set(42); http://git-wip-us.apache.org/repos/asf/mesos/blob/63cdc75c/3rdparty/libprocess/src/tests/process_tests.cpp ---------------------------------------------------------------------- diff --git a/3rdparty/libprocess/src/tests/process_tests.cpp b/3rdparty/libprocess/src/tests/process_tests.cpp index 99065b3..f123ed4 100644 --- a/3rdparty/libprocess/src/tests/process_tests.cpp +++ b/3rdparty/libprocess/src/tests/process_tests.cpp @@ -62,7 +62,7 @@ using testing::ReturnArg; // TODO(bmahler): Move tests into their own files as appropriate. -TEST(Process, Event) +TEST(ProcessTest, Event) { Event* event = new TerminateEvent(UPID()); EXPECT_FALSE(event->is<MessageEvent>()); @@ -72,7 +72,7 @@ TEST(Process, Event) } -TEST(Process, Future) +TEST(ProcessTest, Future) { Promise<bool> promise; promise.set(true); @@ -81,7 +81,7 @@ TEST(Process, Future) } -TEST(Process, Associate) +TEST(ProcessTest, Associate) { Promise<bool> promise1; Future<bool> future1(true); @@ -126,7 +126,7 @@ void onAny(const Future<bool>& future, bool* b) } -TEST(Process, OnAny) +TEST(ProcessTest, OnAny) { bool b = false; Future<bool>(true) @@ -151,7 +151,7 @@ string itoa2(int* const& i) } -TEST(Process, Then) +TEST(ProcessTest, Then) { Promise<int*> promise; @@ -183,7 +183,7 @@ Future<int> repair(const Future<int>& future) // Checks that 'repair' callback gets executed if the future failed // and not executed if the future is completed successfully. -TEST(Process, Repair) +TEST(ProcessTest, Repair) { // Check that the 'repair' callback _does not_ get executed by // making sure that when we complete the promise with a value that's @@ -225,7 +225,7 @@ Future<Nothing> after(volatile bool* executed, const Future<Nothing>& future) // Checks that the 'after' callback gets executed if the future is not // completed. -TEST(Process, After1) +TEST(ProcessTest, After1) { Clock::pause(); @@ -261,7 +261,7 @@ TEST(Process, After1) // Checks that completing a promise will keep the 'after' callback // from executing. -TEST(Process, After2) +TEST(ProcessTest, After2) { Clock::pause(); @@ -330,7 +330,7 @@ Future<string> third(const string& s) } -TEST(Process, Chain) +TEST(ProcessTest, Chain) { Future<string> s = readyFuture() .then(lambda::bind(&second, lambda::_1)) @@ -378,7 +378,7 @@ Future<int> inner2(volatile bool* executed, const Future<int>& future) // Tests that Future::discard does not complete the future unless // Promise::discard is invoked. -TEST(Process, Discard1) +TEST(ProcessTest, Discard1) { Promise<bool> promise1; Promise<int> promise2; @@ -419,7 +419,7 @@ TEST(Process, Discard1) // Tests that Future::discard does not complete the future and // Promise::set can still be invoked to complete the future. -TEST(Process, Discard2) +TEST(ProcessTest, Discard2) { Promise<bool> promise1; Promise<int> promise2; @@ -462,7 +462,7 @@ TEST(Process, Discard2) // Tests that Future::discard does not complete the future and // Promise::fail can still be invoked to complete the future. -TEST(Process, Discard3) +TEST(ProcessTest, Discard3) { Promise<bool> promise1; Promise<int> promise2; @@ -509,7 +509,7 @@ public: }; -TEST(Process, Spawn) +TEST(ProcessTest, Spawn) { ASSERT_TRUE(GTEST_IS_THREADSAFE); @@ -543,7 +543,7 @@ public: }; -TEST(Process, Dispatch) +TEST(ProcessTest, Dispatch) { ASSERT_TRUE(GTEST_IS_THREADSAFE); @@ -579,7 +579,7 @@ TEST(Process, Dispatch) } -TEST(Process, Defer1) +TEST(ProcessTest, Defer1) { ASSERT_TRUE(GTEST_IS_THREADSAFE); @@ -677,7 +677,7 @@ private: }; -TEST(Process, Defer2) +TEST(ProcessTest, Defer2) { ASSERT_TRUE(GTEST_IS_THREADSAFE); @@ -711,7 +711,7 @@ void set(T* t1, const T& t2) } -TEST(Process, Defer3) +TEST(ProcessTest, Defer3) { ASSERT_TRUE(GTEST_IS_THREADSAFE); @@ -745,7 +745,7 @@ public: }; -TEST(Process, Handlers) +TEST(ProcessTest, Handlers) { ASSERT_TRUE(GTEST_IS_THREADSAFE); @@ -767,7 +767,7 @@ TEST(Process, Handlers) // Tests DROP_MESSAGE and DROP_DISPATCH and in particular that an // event can get dropped before being processed. -TEST(Process, Expect) +TEST(ProcessTest, Expect) { ASSERT_TRUE(GTEST_IS_THREADSAFE); @@ -798,7 +798,7 @@ TEST(Process, Expect) // Tests the FutureArg<N> action. -TEST(Process, Action) +TEST(ProcessTest, Action) { ASSERT_TRUE(GTEST_IS_THREADSAFE); @@ -845,7 +845,7 @@ public: }; -TEST(Process, Inheritance) +TEST(ProcessTest, Inheritance) { ASSERT_TRUE(GTEST_IS_THREADSAFE); @@ -876,7 +876,7 @@ TEST(Process, Inheritance) } -TEST(Process, Thunk) +TEST(ProcessTest, Thunk) { ASSERT_TRUE(GTEST_IS_THREADSAFE); @@ -921,7 +921,7 @@ public: }; -TEST(Process, Delegate) +TEST(ProcessTest, Delegate) { ASSERT_TRUE(GTEST_IS_THREADSAFE); @@ -951,7 +951,7 @@ public: }; -TEST(Process, Delay) +TEST(ProcessTest, Delay) { ASSERT_TRUE(GTEST_IS_THREADSAFE); @@ -990,7 +990,7 @@ public: }; -TEST(Process, Order) +TEST(ProcessTest, Order) { ASSERT_TRUE(GTEST_IS_THREADSAFE); @@ -1045,7 +1045,7 @@ public: }; -TEST(Process, Donate) +TEST(ProcessTest, Donate) { ASSERT_TRUE(GTEST_IS_THREADSAFE); @@ -1068,7 +1068,7 @@ public: }; -TEST(Process, Exited) +TEST(ProcessTest, Exited) { ASSERT_TRUE(GTEST_IS_THREADSAFE); @@ -1092,7 +1092,7 @@ TEST(Process, Exited) } -TEST(Process, InjectExited) +TEST(ProcessTest, InjectExited) { ASSERT_TRUE(GTEST_IS_THREADSAFE); @@ -1116,7 +1116,7 @@ TEST(Process, InjectExited) } -TEST(Process, Select) +TEST(ProcessTest, Select) { ASSERT_TRUE(GTEST_IS_THREADSAFE); @@ -1149,7 +1149,7 @@ TEST(Process, Select) } -TEST(Process, Collect) +TEST(ProcessTest, Collect) { ASSERT_TRUE(GTEST_IS_THREADSAFE); @@ -1192,7 +1192,7 @@ TEST(Process, Collect) } -TEST(Process, Await1) +TEST(ProcessTest, Await1) { ASSERT_TRUE(GTEST_IS_THREADSAFE); @@ -1235,7 +1235,7 @@ TEST(Process, Await1) } -TEST(Process, Await2) +TEST(ProcessTest, Await2) { Promise<int> promise1; Promise<bool> promise2; @@ -1261,7 +1261,7 @@ TEST(Process, Await2) } -TEST(Process, Await3) +TEST(ProcessTest, Await3) { Promise<int> promise1; Promise<bool> promise2; @@ -1318,7 +1318,7 @@ public: }; -TEST(Process, Settle) +TEST(ProcessTest, Settle) { ASSERT_TRUE(GTEST_IS_THREADSAFE); @@ -1333,7 +1333,7 @@ TEST(Process, Settle) } -TEST(Process, Pid) +TEST(ProcessTest, Pid) { ASSERT_TRUE(GTEST_IS_THREADSAFE); @@ -1368,7 +1368,7 @@ public: }; -TEST(Process, Listener) +TEST(ProcessTest, Listener) { ASSERT_TRUE(GTEST_IS_THREADSAFE); @@ -1398,7 +1398,7 @@ public: }; -TEST(Process, Executor) +TEST(ProcessTest, Executor) { ASSERT_TRUE(GTEST_IS_THREADSAFE); @@ -1446,7 +1446,7 @@ public: }; -TEST(Process, Remote) +TEST(ProcessTest, Remote) { ASSERT_TRUE(GTEST_IS_THREADSAFE); @@ -1481,7 +1481,7 @@ TEST(Process, Remote) // Like the 'remote' test but uses http::post. -TEST(Process, Http1) +TEST(ProcessTest, Http1) { ASSERT_TRUE(GTEST_IS_THREADSAFE); @@ -1512,7 +1512,7 @@ TEST(Process, Http1) // Like 'http1' but using a 'Libprocess-From' header. -TEST(Process, Http2) +TEST(ProcessTest, Http2) { ASSERT_TRUE(GTEST_IS_THREADSAFE); @@ -1611,7 +1611,7 @@ void bar(int a) } -TEST(Process, Async) +TEST(ProcessTest, Async) { ASSERT_TRUE(GTEST_IS_THREADSAFE); @@ -1646,7 +1646,7 @@ public: }; -TEST(Process, Provide) +TEST(ProcessTest, Provide) { const Try<string> mkdtemp = os::mkdtemp(); ASSERT_SOME(mkdtemp); @@ -1684,7 +1684,7 @@ int baz(string s) { return 42; } Future<int> bam(string s) { return 42; } -TEST(Process, Defers) +TEST(ProcessTest, Defers) { { std::function<Future<int>(string)> f = @@ -1823,7 +1823,7 @@ TEST(Process, Defers) } -TEST(Future, FromTry) +TEST(ProcessTest, FromTry) { Try<int> t = 1; Future<int> future = t; @@ -1855,7 +1855,7 @@ public: }; -TEST(Process, PercentEncodedURLs) +TEST(ProcessTest, PercentEncodedURLs) { PercentEncodedIDProcess process; spawn(process); @@ -1919,7 +1919,7 @@ public: // Sets firewall rules which disable endpoints on a process and then // attempts to connect to those endpoints. -TEST(Process, FirewallDisablePaths) +TEST(ProcessTest, FirewallDisablePaths) { const string id = "testprocess"; @@ -1992,7 +1992,7 @@ TEST(Process, FirewallDisablePaths) // Test that firewall rules can be changed by changing the vector. // An empty vector should allow all paths. -TEST(Process, FirewallUninstall) +TEST(ProcessTest, FirewallUninstall) { const string id = "testprocess"; http://git-wip-us.apache.org/repos/asf/mesos/blob/63cdc75c/3rdparty/libprocess/src/tests/queue_tests.cpp ---------------------------------------------------------------------- diff --git a/3rdparty/libprocess/src/tests/queue_tests.cpp b/3rdparty/libprocess/src/tests/queue_tests.cpp index bdd2177..b4648f9 100644 --- a/3rdparty/libprocess/src/tests/queue_tests.cpp +++ b/3rdparty/libprocess/src/tests/queue_tests.cpp @@ -9,7 +9,7 @@ using namespace process; using std::string; -TEST(Queue, Block) +TEST(QueueTest, Block) { Queue<string> q; @@ -26,7 +26,7 @@ TEST(Queue, Block) } -TEST(Queue, Noblock) +TEST(QueueTest, Noblock) { Queue<string> q; @@ -40,7 +40,7 @@ TEST(Queue, Noblock) } -TEST(Queue, Queue) +TEST(QueueTest, Queue) { Queue<string> q; http://git-wip-us.apache.org/repos/asf/mesos/blob/63cdc75c/3rdparty/libprocess/src/tests/reap_tests.cpp ---------------------------------------------------------------------- diff --git a/3rdparty/libprocess/src/tests/reap_tests.cpp b/3rdparty/libprocess/src/tests/reap_tests.cpp index 51a570f..6afe3e1 100644 --- a/3rdparty/libprocess/src/tests/reap_tests.cpp +++ b/3rdparty/libprocess/src/tests/reap_tests.cpp @@ -29,7 +29,7 @@ using testing::DoDefault; // This test checks that we can reap a non-child process, in terms // of receiving the termination notification. -TEST(Reap, NonChildProcess) +TEST(ReapTest, NonChildProcess) { // The child process creates a grandchild and then exits. The // grandchild sleeps for 10 seconds. The process tree looks like: @@ -92,7 +92,7 @@ TEST(Reap, NonChildProcess) // This test checks that the we can reap a child process and obtain // the correct exit status. -TEST(Reap, ChildProcess) +TEST(ReapTest, ChildProcess) { ASSERT_TRUE(GTEST_IS_THREADSAFE); @@ -130,7 +130,7 @@ TEST(Reap, ChildProcess) // Check that we can reap a child process that is already exited. -TEST(Reap, TerminatedChildProcess) +TEST(ReapTest, TerminatedChildProcess) { ASSERT_TRUE(GTEST_IS_THREADSAFE); http://git-wip-us.apache.org/repos/asf/mesos/blob/63cdc75c/3rdparty/libprocess/src/tests/sequence_tests.cpp ---------------------------------------------------------------------- diff --git a/3rdparty/libprocess/src/tests/sequence_tests.cpp b/3rdparty/libprocess/src/tests/sequence_tests.cpp index 6b5d161..31b6d62 100644 --- a/3rdparty/libprocess/src/tests/sequence_tests.cpp +++ b/3rdparty/libprocess/src/tests/sequence_tests.cpp @@ -46,7 +46,7 @@ public: // The test verifies that callbacks are properly serialized by the // Sequence object. -TEST(Sequence, Serialize) +TEST(SequenceTest, Serialize) { TestProcess process; spawn(process); @@ -96,7 +96,7 @@ public: // The tests verifies semantics of discarding one returned future. -TEST(Sequence, DiscardOne) +TEST(SequenceTest, DiscardOne) { DiscardProcess process; spawn(process); @@ -146,7 +146,7 @@ TEST(Sequence, DiscardOne) // The test verifies the semantics of deleting the Sequence object, // which will result in all pending callbacks being discarded. -TEST(Sequence, DiscardAll) +TEST(SequenceTest, DiscardAll) { DiscardProcess process; spawn(process); @@ -226,7 +226,7 @@ private: }; -TEST(Sequence, Random) +TEST(SequenceTest, Random) { RandomProcess process; spawn(process); http://git-wip-us.apache.org/repos/asf/mesos/blob/63cdc75c/3rdparty/libprocess/src/tests/shared_tests.cpp ---------------------------------------------------------------------- diff --git a/3rdparty/libprocess/src/tests/shared_tests.cpp b/3rdparty/libprocess/src/tests/shared_tests.cpp index 1df67b4..bf442e5 100644 --- a/3rdparty/libprocess/src/tests/shared_tests.cpp +++ b/3rdparty/libprocess/src/tests/shared_tests.cpp @@ -17,7 +17,7 @@ private: }; -TEST(Shared, ConstAccess) +TEST(SharedTest, ConstAccess) { Foo* foo = new Foo(); foo->set(10); @@ -31,7 +31,7 @@ TEST(Shared, ConstAccess) } -TEST(Shared, Null) +TEST(SharedTest, Null) { Shared<Foo> shared(NULL); Shared<Foo> shared2(shared); @@ -41,7 +41,7 @@ TEST(Shared, Null) } -TEST(Shared, Reset) +TEST(SharedTest, Reset) { Foo* foo = new Foo(); foo->set(42); @@ -64,7 +64,7 @@ TEST(Shared, Reset) } -TEST(Shared, Own) +TEST(SharedTest, Own) { Foo* foo = new Foo(); foo->set(42); http://git-wip-us.apache.org/repos/asf/mesos/blob/63cdc75c/3rdparty/libprocess/src/tests/statistics_tests.cpp ---------------------------------------------------------------------- diff --git a/3rdparty/libprocess/src/tests/statistics_tests.cpp b/3rdparty/libprocess/src/tests/statistics_tests.cpp index 7ba913b..3213b87 100644 --- a/3rdparty/libprocess/src/tests/statistics_tests.cpp +++ b/3rdparty/libprocess/src/tests/statistics_tests.cpp @@ -9,7 +9,7 @@ using namespace process; -TEST(Statistics, Empty) +TEST(StatisticsTest, Empty) { TimeSeries<double> timeseries; @@ -17,7 +17,7 @@ TEST(Statistics, Empty) } -TEST(Statistics, Single) +TEST(StatisticsTest, Single) { TimeSeries<double> timeseries; @@ -27,7 +27,7 @@ TEST(Statistics, Single) } -TEST(Statistics, Statistics) +TEST(StatisticsTest, Statistics) { // Create a distribution of 10 values from -5 to 4. TimeSeries<double> timeseries; http://git-wip-us.apache.org/repos/asf/mesos/blob/63cdc75c/3rdparty/libprocess/src/tests/system_tests.cpp ---------------------------------------------------------------------- diff --git a/3rdparty/libprocess/src/tests/system_tests.cpp b/3rdparty/libprocess/src/tests/system_tests.cpp index a917790..25436ea 100644 --- a/3rdparty/libprocess/src/tests/system_tests.cpp +++ b/3rdparty/libprocess/src/tests/system_tests.cpp @@ -38,7 +38,7 @@ using process::metrics::internal::MetricsProcess; // metrics. If in the future we put the error message from the Failure // in the endpoint, or the memory metric is always available, we // should reenable this test. -TEST(System, DISABLED_Metrics) +TEST(SystemTest, DISABLED_Metrics) { Future<http::Response> response = http::get(MetricsProcess::instance()->self(), "snapshot"); http://git-wip-us.apache.org/repos/asf/mesos/blob/63cdc75c/3rdparty/libprocess/src/tests/timeseries_tests.cpp ---------------------------------------------------------------------- diff --git a/3rdparty/libprocess/src/tests/timeseries_tests.cpp b/3rdparty/libprocess/src/tests/timeseries_tests.cpp index 434a6c7..5394d60 100644 --- a/3rdparty/libprocess/src/tests/timeseries_tests.cpp +++ b/3rdparty/libprocess/src/tests/timeseries_tests.cpp @@ -20,7 +20,7 @@ List<int> toList(const TimeSeries<int>& series) } -TEST(TimeSeries, Set) +TEST(TimeSeriesTest, Set) { TimeSeries<int> series; @@ -36,7 +36,7 @@ TEST(TimeSeries, Set) ASSERT_EQ(1, latest.get().data); } -TEST(TimeSeries, Sparsify) +TEST(TimeSeriesTest, Sparsify) { // We have to pause the clock because this test often results // in to set() operations occurring at the same time according @@ -97,7 +97,7 @@ TEST(TimeSeries, Sparsify) } -TEST(TimeSeries, Truncate) +TEST(TimeSeriesTest, Truncate) { // Test simple truncation first. Clock::pause();
