Googletest export

Remove linked_ptr and use std::shared_ptr instead

PiperOrigin-RevId: 219129336
This commit is contained in:
misterg
2018-10-29 11:09:33 -04:00
committed by Gennadiy Civil
parent 2e308484d9
commit 80b43d900b
26 changed files with 95 additions and 625 deletions

View File

@@ -41,6 +41,7 @@
#ifndef GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_ACTIONS_H_
#define GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_ACTIONS_H_
#include <memory>
#include <utility>
#include "gmock/gmock-actions.h"
@@ -348,7 +349,7 @@ class InvokeCallbackAction {
callback_.get(), args);
}
private:
const linked_ptr<CallbackType> callback_;
const std::shared_ptr<CallbackType> callback_;
};
// An INTERNAL macro for extracting the type of a tuple field. It's