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

Side by Side Diff: components/sync/engine_impl/debug_info_event_listener_unittest.cc

Issue 2689773002: [Sync] Replace typedef with using. (Closed)
Patch Set: [Sync] Replace typedef with using. Created 3 years, 10 months 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/sync/engine_impl/debug_info_event_listener.h" 5 #include "components/sync/engine_impl/debug_info_event_listener.h"
6 6
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 8
9 namespace syncer { 9 namespace syncer {
10 10
11 typedef testing::Test DebugInfoEventListenerTest; 11 using DebugInfoEventListenerTest = testing::Test;
12 12
13 TEST_F(DebugInfoEventListenerTest, VerifyEventsAdded) { 13 TEST_F(DebugInfoEventListenerTest, VerifyEventsAdded) {
14 DebugInfoEventListener debug_info_event_listener; 14 DebugInfoEventListener debug_info_event_listener;
15 debug_info_event_listener.CreateAndAddEvent( 15 debug_info_event_listener.CreateAndAddEvent(
16 sync_pb::SyncEnums::ENCRYPTION_COMPLETE); 16 sync_pb::SyncEnums::ENCRYPTION_COMPLETE);
17 ASSERT_EQ(debug_info_event_listener.events_.size(), 1U); 17 ASSERT_EQ(debug_info_event_listener.events_.size(), 1U);
18 const sync_pb::DebugEventInfo& debug_info = 18 const sync_pb::DebugEventInfo& debug_info =
19 debug_info_event_listener.events_.back(); 19 debug_info_event_listener.events_.back();
20 ASSERT_TRUE(debug_info.has_singleton_event()); 20 ASSERT_TRUE(debug_info.has_singleton_event());
21 ASSERT_EQ(debug_info.singleton_event(), 21 ASSERT_EQ(debug_info.singleton_event(),
(...skipping 30 matching lines...) Expand all
52 TEST_F(DebugInfoEventListenerTest, VerifyClearEvents) { 52 TEST_F(DebugInfoEventListenerTest, VerifyClearEvents) {
53 DebugInfoEventListener debug_info_event_listener; 53 DebugInfoEventListener debug_info_event_listener;
54 debug_info_event_listener.CreateAndAddEvent( 54 debug_info_event_listener.CreateAndAddEvent(
55 sync_pb::SyncEnums::ENCRYPTION_COMPLETE); 55 sync_pb::SyncEnums::ENCRYPTION_COMPLETE);
56 ASSERT_EQ(debug_info_event_listener.events_.size(), 1U); 56 ASSERT_EQ(debug_info_event_listener.events_.size(), 1U);
57 debug_info_event_listener.ClearDebugInfo(); 57 debug_info_event_listener.ClearDebugInfo();
58 ASSERT_EQ(debug_info_event_listener.events_.size(), 0U); 58 ASSERT_EQ(debug_info_event_listener.events_.size(), 0U);
59 } 59 }
60 60
61 } // namespace syncer 61 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/engine_impl/debug_info_event_listener.h ('k') | components/sync/engine_impl/get_updates_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698