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

Unified Diff: chrome/browser/sync/sessions/session_state_unittest.cc

Issue 7477004: Simulate transient error and verify exponential backoff. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Upload before commit. Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/sync/sessions/session_state.cc ('k') | chrome/browser/sync/sessions/status_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/sessions/session_state_unittest.cc
diff --git a/chrome/browser/sync/sessions/session_state_unittest.cc b/chrome/browser/sync/sessions/session_state_unittest.cc
index c12facd183a2e1fd7398c35878b657005d47bde8..2c7c81cdf52d8ced209de1be68773a305543b1e6 100644
--- a/chrome/browser/sync/sessions/session_state_unittest.cc
+++ b/chrome/browser/sync/sessions/session_state_unittest.cc
@@ -8,6 +8,7 @@
#include "base/base64.h"
#include "base/memory/scoped_ptr.h"
+#include "base/time.h"
#include "base/values.h"
#include "chrome/test/base/values_test_util.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -45,7 +46,7 @@ TEST_F(SessionStateTest, SyncerStatusToValue) {
SyncerStatus status;
status.invalid_store = true;
status.syncer_stuck = false;
- status.syncing = true;
+ status.sync_in_progress = true;
status.num_successful_commits = 5;
status.num_successful_bookmark_commits = 10;
status.num_updates_downloaded_total = 100;
@@ -57,7 +58,7 @@ TEST_F(SessionStateTest, SyncerStatusToValue) {
EXPECT_EQ(9u, value->size());
ExpectDictBooleanValue(status.invalid_store, *value, "invalidStore");
ExpectDictBooleanValue(status.syncer_stuck, *value, "syncerStuck");
- ExpectDictBooleanValue(status.syncing, *value, "syncing");
+ ExpectDictBooleanValue(status.sync_in_progress, *value, "syncInProgress");
ExpectDictIntegerValue(status.num_successful_commits,
*value, "numSuccessfulCommits");
ExpectDictIntegerValue(status.num_successful_bookmark_commits,
@@ -160,7 +161,8 @@ TEST_F(SessionStateTest, SyncSessionSnapshotToValue) {
kNumConflictingUpdates,
kDidCommitItems,
source,
- 0);
+ 0,
+ base::Time::Now());
scoped_ptr<DictionaryValue> value(snapshot.ToValue());
EXPECT_EQ(14u, value->size());
ExpectDictDictionaryValue(*expected_syncer_status_value, *value,
« no previous file with comments | « chrome/browser/sync/sessions/session_state.cc ('k') | chrome/browser/sync/sessions/status_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698