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

Side by Side Diff: components/login/screens/screen_context_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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 <algorithm> 5 #include <algorithm>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "components/login/screens/screen_context.h" 9 #include "components/login/screens/screen_context.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 namespace login { 12 namespace login {
13 13
14 class ScreenContextTest : public testing::Test { 14 class ScreenContextTest : public testing::Test {
15 public: 15 public:
16 ScreenContextTest() {} 16 ScreenContextTest() {}
17 virtual ~ScreenContextTest() {} 17 ~ScreenContextTest() override {}
18 18
19 virtual void SetUp() { context_.reset(new ScreenContext()); } 19 void SetUp() override { context_.reset(new ScreenContext()); }
20 20
21 virtual void TearDown() {} 21 void TearDown() override {}
22 22
23 protected: 23 protected:
24 ScreenContext& context() { return *context_.get(); } 24 ScreenContext& context() { return *context_.get(); }
25 25
26 private: 26 private:
27 scoped_ptr<ScreenContext> context_; 27 scoped_ptr<ScreenContext> context_;
28 }; 28 };
29 29
30 TEST_F(ScreenContextTest, Simple) { 30 TEST_F(ScreenContextTest, Simple) {
31 ASSERT_FALSE(context().HasChanges()); 31 ASSERT_FALSE(context().HasChanges());
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 ASSERT_EQ("key1", keys[1]); 145 ASSERT_EQ("key1", keys[1]);
146 ASSERT_EQ("key2", keys[2]); 146 ASSERT_EQ("key2", keys[2]);
147 147
148 ASSERT_FALSE(context().HasChanges()); 148 ASSERT_FALSE(context().HasChanges());
149 ASSERT_EQ("value0", context().GetString("key0")); 149 ASSERT_EQ("value0", context().GetString("key0"));
150 ASSERT_EQ(1, context().GetInteger("key1")); 150 ASSERT_EQ(1, context().GetInteger("key1"));
151 ASSERT_TRUE(context().GetBoolean("key2")); 151 ASSERT_TRUE(context().GetBoolean("key2"));
152 } 152 }
153 153
154 } // namespace login 154 } // namespace login
OLDNEW
« no previous file with comments | « components/leveldb_proto/proto_database_impl_unittest.cc ('k') | components/metrics/gpu/gpu_metrics_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698