OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/sync/engine/clear_data_command.h" | 5 #include "chrome/browser/sync/engine/clear_data_command.h" |
6 #include "chrome/browser/sync/protocol/autofill_specifics.pb.h" | 6 #include "chrome/browser/sync/protocol/autofill_specifics.pb.h" |
7 #include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" | 7 #include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" |
8 #include "chrome/browser/sync/protocol/preference_specifics.pb.h" | 8 #include "chrome/browser/sync/protocol/preference_specifics.pb.h" |
9 #include "chrome/browser/sync/protocol/sync.pb.h" | 9 #include "chrome/browser/sync/protocol/sync.pb.h" |
10 #include "chrome/browser/sync/syncable/directory_manager.h" | 10 #include "chrome/browser/sync/syncable/directory_manager.h" |
11 #include "chrome/test/sync/engine/proto_extension_validator.h" | 11 #include "chrome/browser/sync/test/engine/proto_extension_validator.h" |
12 #include "chrome/test/sync/engine/syncer_command_test.h" | 12 #include "chrome/browser/sync/test/engine/syncer_command_test.h" |
13 #include "chrome/test/sync/sessions/test_scoped_session_event_listener.h" | 13 #include "chrome/browser/sync/test/sessions/test_scoped_session_event_listener.h
" |
14 | 14 |
15 namespace browser_sync { | 15 namespace browser_sync { |
16 | 16 |
17 using sessions::TestScopedSessionEventListener; | 17 using sessions::TestScopedSessionEventListener; |
18 using syncable::FIRST_REAL_MODEL_TYPE; | 18 using syncable::FIRST_REAL_MODEL_TYPE; |
19 using syncable::MODEL_TYPE_COUNT; | 19 using syncable::MODEL_TYPE_COUNT; |
20 | 20 |
21 // A test fixture for tests exercising ClearDataCommandTest. | 21 // A test fixture for tests exercising ClearDataCommandTest. |
22 class ClearDataCommandTest : public SyncerCommandTest { | 22 class ClearDataCommandTest : public SyncerCommandTest { |
23 protected: | 23 protected: |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 EXPECT_TRUE(r.has_clear_user_data()); | 118 EXPECT_TRUE(r.has_clear_user_data()); |
119 | 119 |
120 EXPECT_TRUE(handler->ReceievedClearSuccessEvent()); | 120 EXPECT_TRUE(handler->ReceievedClearSuccessEvent()); |
121 EXPECT_TRUE(on_should_stop_syncing_permanently_called_); | 121 EXPECT_TRUE(on_should_stop_syncing_permanently_called_); |
122 | 122 |
123 EXPECT_FALSE(handler->ReceievedClearFailedEvent()); | 123 EXPECT_FALSE(handler->ReceievedClearFailedEvent()); |
124 } | 124 } |
125 | 125 |
126 } // namespace browser_sync | 126 } // namespace browser_sync |
127 | 127 |
OLD | NEW |