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

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

Issue 2413313004: [Sync] Move the last things out of core/. (Closed)
Patch Set: Address comments. Created 4 years, 2 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/core_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 typedef testing::Test DebugInfoEventListenerTest;
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(
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
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

Powered by Google App Engine
This is Rietveld 408576698