mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 07:36:10 -04:00
Merge branch 'google3'
Change-Id: Ibebf84b98939ee8e5006beedc34d225e8c2dd413
This commit is contained in:
@@ -4,8 +4,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"
|
||||
@@ -17,16 +16,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