Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(354)

Side by Side Diff: components/policy/core/common/async_policy_provider_unittest.cc

Issue 684513002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "components/policy/core/common/async_policy_provider.h" 5 #include "components/policy/core/common/async_policy_provider.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/message_loop/message_loop_proxy.h" 10 #include "base/message_loop/message_loop_proxy.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 bundle->CopyFrom(*loaded); 71 bundle->CopyFrom(*loaded);
72 } 72 }
73 return bundle.Pass(); 73 return bundle.Pass();
74 } 74 }
75 75
76 } // namespace 76 } // namespace
77 77
78 class AsyncPolicyProviderTest : public testing::Test { 78 class AsyncPolicyProviderTest : public testing::Test {
79 protected: 79 protected:
80 AsyncPolicyProviderTest(); 80 AsyncPolicyProviderTest();
81 virtual ~AsyncPolicyProviderTest(); 81 ~AsyncPolicyProviderTest() override;
82 82
83 virtual void SetUp() override; 83 void SetUp() override;
84 virtual void TearDown() override; 84 void TearDown() override;
85 85
86 base::MessageLoop loop_; 86 base::MessageLoop loop_;
87 SchemaRegistry schema_registry_; 87 SchemaRegistry schema_registry_;
88 PolicyBundle initial_bundle_; 88 PolicyBundle initial_bundle_;
89 MockPolicyLoader* loader_; 89 MockPolicyLoader* loader_;
90 scoped_ptr<AsyncPolicyProvider> provider_; 90 scoped_ptr<AsyncPolicyProvider> provider_;
91 91
92 private: 92 private:
93 DISALLOW_COPY_AND_ASSIGN(AsyncPolicyProviderTest); 93 DISALLOW_COPY_AND_ASSIGN(AsyncPolicyProviderTest);
94 }; 94 };
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 EXPECT_CALL(observer, OnUpdatePolicy(provider_.get())).Times(0); 218 EXPECT_CALL(observer, OnUpdatePolicy(provider_.get())).Times(0);
219 provider_->Shutdown(); 219 provider_->Shutdown();
220 loop_.RunUntilIdle(); 220 loop_.RunUntilIdle();
221 Mock::VerifyAndClearExpectations(&observer); 221 Mock::VerifyAndClearExpectations(&observer);
222 222
223 provider_->RemoveObserver(&observer); 223 provider_->RemoveObserver(&observer);
224 provider_.reset(); 224 provider_.reset();
225 } 225 }
226 226
227 } // namespace policy 227 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698