| Index: base/file_descriptor_shuffle_unittest.cc
|
| diff --git a/base/file_descriptor_shuffle_unittest.cc b/base/file_descriptor_shuffle_unittest.cc
|
| index 9b3f9597c649caf09cbe0b7963ec6cc9185c995d..a1b1d29ac18d6ecde8a6c2068fa40885d1c6151b 100644
|
| --- a/base/file_descriptor_shuffle_unittest.cc
|
| +++ b/base/file_descriptor_shuffle_unittest.cc
|
| @@ -44,18 +44,18 @@ class InjectionTracer : public InjectionDelegate {
|
| : next_duplicate_(kDuplicateBase) {
|
| }
|
|
|
| - bool Duplicate(int* result, int fd) {
|
| + virtual bool Duplicate(int* result, int fd) OVERRIDE {
|
| *result = next_duplicate_++;
|
| actions_.push_back(Action(Action::DUPLICATE, *result, fd));
|
| return true;
|
| }
|
|
|
| - bool Move(int src, int dest) {
|
| + virtual bool Move(int src, int dest) OVERRIDE {
|
| actions_.push_back(Action(Action::MOVE, src, dest));
|
| return true;
|
| }
|
|
|
| - void Close(int fd) {
|
| + virtual void Close(int fd) OVERRIDE {
|
| actions_.push_back(Action(Action::CLOSE, fd));
|
| }
|
|
|
| @@ -250,16 +250,15 @@ TEST(FileDescriptorShuffleTest, FanoutAndClose3) {
|
|
|
| class FailingDelegate : public InjectionDelegate {
|
| public:
|
| - bool Duplicate(int* result, int fd) {
|
| + virtual bool Duplicate(int* result, int fd) OVERRIDE {
|
| return false;
|
| }
|
|
|
| - bool Move(int src, int dest) {
|
| + virtual bool Move(int src, int dest) OVERRIDE {
|
| return false;
|
| }
|
|
|
| - void Close(int fd) {
|
| - }
|
| + virtual void Close(int fd) OVERRIDE {}
|
| };
|
|
|
| TEST(FileDescriptorShuffleTest, EmptyWithFailure) {
|
|
|