aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/secret.cpp
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2021-07-04 05:58:54 +0300
committerlevlam <levlam@telegram.org>2021-07-04 05:58:54 +0300
commit40c5d47717a4c047957d6da3e6f7cf42fe702924 (patch)
tree93775787474e486893f3d30b4a901042bf1b1314 /test/secret.cpp
parentedfa5d1d982a8d499877eb9fafc5192a0baa2974 (diff)
Make inherited classes final if possible.
Diffstat (limited to 'test/secret.cpp')
-rw-r--r--test/secret.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/secret.cpp b/test/secret.cpp
index 24f07ed2c..a223935d2 100644
--- a/test/secret.cpp
+++ b/test/secret.cpp
@@ -334,7 +334,7 @@ static string prime_base64 =
"WC2xF40WnGvEZbDW_5yjko_vW5rk5Bj8Feg-vqD4f6n_Xu1wBQ3tKEn0e_lZ2VaFDOkphR8NgRX2NbEF7i5OFdBLJFS_b0-t8DSxBAMRnNjjuS_MW"
"w";
-class FakeDhCallback : public DhCallback {
+class FakeDhCallback final : public DhCallback {
public:
int is_good_prime(Slice prime_str) const final {
auto it = cache.find(prime_str.str());
@@ -352,7 +352,7 @@ class FakeDhCallback : public DhCallback {
mutable std::map<string, int> cache;
};
-class FakeBinlog
+class FakeBinlog final
: public BinlogInterface
, public Actor {
public:
@@ -479,7 +479,7 @@ class FakeBinlog
using FakeKeyValue = BinlogKeyValue<BinlogInterface>;
class Master;
-class FakeSecretChatContext : public SecretChatActor::Context {
+class FakeSecretChatContext final : public SecretChatActor::Context {
public:
FakeSecretChatContext(std::shared_ptr<BinlogInterface> binlog, std::shared_ptr<KeyValueSyncInterface> key_value,
std::shared_ptr<bool> close_flag, ActorShared<Master> master)
@@ -565,11 +565,11 @@ class FakeSecretChatContext : public SecretChatActor::Context {
};
NetQueryCreator FakeSecretChatContext::net_query_creator_;
-class Master : public Actor {
+class Master final : public Actor {
public:
explicit Master(Status *status) : status_(status) {
}
- class SecretChatProxy : public Actor {
+ class SecretChatProxy final : public Actor {
public:
SecretChatProxy(string name, ActorShared<Master> parent) : name_(std::move(name)) {
binlog_ = std::make_shared<FakeBinlog>();