| Index: chrome/browser/sync/engine/download_updates_command_unittest.cc
|
| diff --git a/chrome/browser/sync/engine/download_updates_command_unittest.cc b/chrome/browser/sync/engine/download_updates_command_unittest.cc
|
| index 1e2aa2f63ce2e267ed669192433523bbd3eb0e95..53d6bf72d39eacc7d95e3e3152c69c63740904c6 100644
|
| --- a/chrome/browser/sync/engine/download_updates_command_unittest.cc
|
| +++ b/chrome/browser/sync/engine/download_updates_command_unittest.cc
|
| @@ -11,6 +11,7 @@
|
| #include "chrome/browser/sync/test/engine/proto_extension_validator.h"
|
| #include "chrome/browser/sync/test/engine/syncer_command_test.h"
|
|
|
| +using ::testing::_;
|
| namespace browser_sync {
|
|
|
| using syncable::FIRST_REAL_MODEL_TYPE;
|
| @@ -132,4 +133,15 @@ TEST_F(DownloadUpdatesCommandTest, ExecuteWithPayloads) {
|
| command_.ExecuteImpl(session(source));
|
| }
|
|
|
| +TEST_F(DownloadUpdatesCommandTest, VerifyAppendDebugInfo) {
|
| + sync_pb::DebugInfo debug_info;
|
| + EXPECT_CALL(*(mock_debug_info_getter()), GetAndClearDebugInfo(_))
|
| + .Times(1);
|
| + command_.AppendClientDebugInfoIfNeeded(session(), &debug_info);
|
| +
|
| + // Now try to add it once more and make sure |GetAndClearDebugInfo| is not
|
| + // called.
|
| + command_.AppendClientDebugInfoIfNeeded(session(), &debug_info);
|
| +}
|
| +
|
| } // namespace browser_sync
|
|
|