output_streams[i] = producer.Pass();
}
- mojo::Array<mojo::Array<bool> > array_of_array_of_bools(2);
+ mojo::Array<mojo::Array<bool>> array_of_array_of_bools(2);
for (size_t i = 0; i < 2; ++i) {
mojo::Array<bool> array_of_bools(2);
for (size_t j = 0; j < 2; ++j)
}
template <typename H>
-void Print(int depth, const char* name,
+void Print(int depth,
+ const char* name,
const mojo::ScopedHandleBase<H>& value) {
PrintSpacer(depth);
std::cout << name << ": 0x" << std::hex << value.get().value() << std::endl;
void DumpHex(const uint8_t* bytes, uint32_t num_bytes) {
for (uint32_t i = 0; i < num_bytes; ++i) {
- std::cout << std::setw(2) << std::setfill('0') << std::hex <<
- uint32_t(bytes[i]);
+ std::cout << std::setw(2) << std::setfill('0') << std::hex
+ << uint32_t(bytes[i]);
if (i % 16 == 15) {
std::cout << std::endl;
class ServiceImpl : public Service {
public:
- virtual void Frobinate(FooPtr foo, BazOptions baz, PortPtr port)
- MOJO_OVERRIDE {
+ void Frobinate(FooPtr foo, BazOptions baz, PortPtr port) override {
// Users code goes here to handle the incoming Frobinate message.
// We mainly check that we're given the expected arguments.
}
}
- virtual void GetPort(mojo::InterfaceRequest<Port> port_request)
- MOJO_OVERRIDE {
- }
+ void GetPort(mojo::InterfaceRequest<Port> port_request) override {}
};
class ServiceProxyImpl : public ServiceProxy {
public:
explicit ServiceProxyImpl(mojo::MessageReceiverWithResponder* receiver)
- : ServiceProxy(receiver) {
- }
+ : ServiceProxy(receiver) {}
};
class SimpleMessageReceiver : public mojo::MessageReceiverWithResponder {
public:
- virtual bool Accept(mojo::Message* message) MOJO_OVERRIDE {
+ bool Accept(mojo::Message* message) override {
// Imagine some IPC happened here.
if (g_dump_message_as_hex) {
return stub.Accept(message);
}
- virtual bool AcceptWithResponder(mojo::Message* message,
- mojo::MessageReceiver* responder)
- MOJO_OVERRIDE {
+ bool AcceptWithResponder(mojo::Message* message,
+ mojo::MessageReceiver* responder) override {
return false;
}
};
class BindingsSampleTest : public testing::Test {
public:
BindingsSampleTest() {}
- virtual ~BindingsSampleTest() {}
+ ~BindingsSampleTest() override {}
private:
mojo::Environment env_;