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

Side by Side Diff: chrome/browser/sync/engine/clear_data_command_unittest.cc

Issue 9460047: sync: remove use of protobuf extensions in protocol to reduce static init overhead. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fred's review Created 8 years, 9 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 | Annotate | Revision Log
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 "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/test/engine/proto_extension_validator.h"
11 #include "chrome/browser/sync/test/engine/syncer_command_test.h" 10 #include "chrome/browser/sync/test/engine/syncer_command_test.h"
12 #include "chrome/browser/sync/test/sessions/test_scoped_session_event_listener.h " 11 #include "chrome/browser/sync/test/sessions/test_scoped_session_event_listener.h "
13 12
14 namespace browser_sync { 13 namespace browser_sync {
15 14
16 using sessions::TestScopedSessionEventListener; 15 using sessions::TestScopedSessionEventListener;
17 using syncable::FIRST_REAL_MODEL_TYPE; 16 using syncable::FIRST_REAL_MODEL_TYPE;
18 using syncable::MODEL_TYPE_COUNT; 17 using syncable::MODEL_TYPE_COUNT;
19 18
20 // A test fixture for tests exercising ClearDataCommandTest. 19 // A test fixture for tests exercising ClearDataCommandTest.
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 const sync_pb::ClientToServerMessage& r = mock_server()->last_request(); 108 const sync_pb::ClientToServerMessage& r = mock_server()->last_request();
110 EXPECT_TRUE(r.has_clear_user_data()); 109 EXPECT_TRUE(r.has_clear_user_data());
111 110
112 EXPECT_TRUE(handler->ReceievedClearSuccessEvent()); 111 EXPECT_TRUE(handler->ReceievedClearSuccessEvent());
113 EXPECT_TRUE(on_should_stop_syncing_permanently_called_); 112 EXPECT_TRUE(on_should_stop_syncing_permanently_called_);
114 113
115 EXPECT_FALSE(handler->ReceievedClearFailedEvent()); 114 EXPECT_FALSE(handler->ReceievedClearFailedEvent());
116 } 115 }
117 116
118 } // namespace browser_sync 117 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/engine/build_commit_command.cc ('k') | chrome/browser/sync/engine/conflict_resolver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698