| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "third_party/mojo/src/mojo/public/cpp/bindings/tests/message_queue.h" | 5 #include "mojo/public/cpp/bindings/tests/message_queue.h" |
| 6 | 6 |
| 7 #include "third_party/mojo/src/mojo/public/cpp/bindings/message.h" | 7 #include "mojo/public/cpp/bindings/message.h" |
| 8 #include "third_party/mojo/src/mojo/public/cpp/environment/logging.h" | 8 #include "mojo/public/cpp/environment/logging.h" |
| 9 | 9 |
| 10 namespace mojo { | 10 namespace mojo { |
| 11 namespace test { | 11 namespace test { |
| 12 | 12 |
| 13 MessageQueue::MessageQueue() { | 13 MessageQueue::MessageQueue() { |
| 14 } | 14 } |
| 15 | 15 |
| 16 MessageQueue::~MessageQueue() { | 16 MessageQueue::~MessageQueue() { |
| 17 while (!queue_.empty()) | 17 while (!queue_.empty()) |
| 18 Pop(); | 18 Pop(); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 34 } | 34 } |
| 35 | 35 |
| 36 void MessageQueue::Pop() { | 36 void MessageQueue::Pop() { |
| 37 MOJO_DCHECK(!queue_.empty()); | 37 MOJO_DCHECK(!queue_.empty()); |
| 38 delete queue_.front(); | 38 delete queue_.front(); |
| 39 queue_.pop(); | 39 queue_.pop(); |
| 40 } | 40 } |
| 41 | 41 |
| 42 } // namespace test | 42 } // namespace test |
| 43 } // namespace mojo | 43 } // namespace mojo |
| OLD | NEW |