mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Release based on cl/313536507.
Signed-off-by: Alexey Polyudov <apolyudov@google.com> Change-Id: I83ec7dee1a7ef6f4bdfd47482c94d03910525b7e
This commit is contained in:
@@ -18,8 +18,7 @@
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include "platform/impl/default/default_condition_variable.h"
|
||||
#include "platform/impl/default/default_lock.h"
|
||||
#include "platform/api/platform.h"
|
||||
#include "platform/port/string.h"
|
||||
#include "platform/prng.h"
|
||||
#include "platform/ptr.h"
|
||||
@@ -31,16 +30,7 @@ namespace location {
|
||||
namespace nearby {
|
||||
namespace {
|
||||
|
||||
class SamplePlatform {
|
||||
public:
|
||||
static Ptr<Lock> createLock() { return MakePtr(new DefaultLock()); }
|
||||
static Ptr<ConditionVariable> createConditionVariable(Ptr<Lock> lock) {
|
||||
return MakePtr(
|
||||
new DefaultConditionVariable(DowncastPtr<DefaultLock>(lock)));
|
||||
}
|
||||
};
|
||||
|
||||
using SamplePipe = Pipe<SamplePlatform>;
|
||||
using SamplePipe = Pipe;
|
||||
|
||||
TEST(PipeTest, SimpleWriteRead) {
|
||||
auto pipe = MakeRefCountedPtr(new SamplePipe());
|
||||
|
||||
Reference in New Issue
Block a user