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

Unified Diff: sync/test/sessions/mock_debug_info_getter.cc

Issue 61213009: Don't drop debug_info when posting to sync server fails (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed erroneous use of SYNC_EXPORT_PRIVATE from MockDebugInfoGetter. Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sync/test/sessions/mock_debug_info_getter.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/test/sessions/mock_debug_info_getter.cc
diff --git a/sync/test/sessions/mock_debug_info_getter.cc b/sync/test/sessions/mock_debug_info_getter.cc
new file mode 100644
index 0000000000000000000000000000000000000000..524c5cf778506478a5477198b45b20ef0d64d0db
--- /dev/null
+++ b/sync/test/sessions/mock_debug_info_getter.cc
@@ -0,0 +1,29 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "sync/test/sessions/mock_debug_info_getter.h"
+
+namespace syncer {
+namespace sessions {
+
+MockDebugInfoGetter::MockDebugInfoGetter() {
+}
+
+MockDebugInfoGetter::~MockDebugInfoGetter() {
+}
+
+void MockDebugInfoGetter::GetDebugInfo(sync_pb::DebugInfo* debug_info) {
+ debug_info->CopyFrom(debug_info_);
+}
+
+void MockDebugInfoGetter::ClearDebugInfo() {
+ debug_info_.Clear();
+}
+
+void MockDebugInfoGetter::AddDebugEvent() {
+ debug_info_.add_events();
+}
+
+} // namespace sessions
+} // namespace syncer
« no previous file with comments | « sync/test/sessions/mock_debug_info_getter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698