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

Side by Side Diff: chrome/test/live_sync/single_client_live_passwords_sync_test.cc

Issue 6826007: Mark some sync tests as flaky. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: "" Created 9 years, 8 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
« no previous file with comments | « no previous file | chrome/test/live_sync/two_client_live_bookmarks_sync_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/password_manager/password_form_data.h" 5 #include "chrome/browser/password_manager/password_form_data.h"
6 #include "chrome/browser/sync/profile_sync_service_harness.h" 6 #include "chrome/browser/sync/profile_sync_service_harness.h"
7 #include "chrome/test/live_sync/live_passwords_sync_test.h" 7 #include "chrome/test/live_sync/live_passwords_sync_test.h"
8 8
9 using webkit_glue::PasswordForm; 9 using webkit_glue::PasswordForm;
10 10
11 IN_PROC_BROWSER_TEST_F(SingleClientLivePasswordsSyncTest, Sanity) { 11 // TODO(rsimha): See http://crbug.com/78840.
12 IN_PROC_BROWSER_TEST_F(SingleClientLivePasswordsSyncTest, FLAKY_Sanity) {
12 ASSERT_TRUE(SetupSync()) << "SetupSync() failed."; 13 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
13 14
14 PasswordForm form = CreateTestPasswordForm(0); 15 PasswordForm form = CreateTestPasswordForm(0);
15 AddLogin(GetVerifierPasswordStore(), form); 16 AddLogin(GetVerifierPasswordStore(), form);
16 17
17 std::vector<PasswordForm> verifier_forms; 18 std::vector<PasswordForm> verifier_forms;
18 GetLogins(GetVerifierPasswordStore(), verifier_forms); 19 GetLogins(GetVerifierPasswordStore(), verifier_forms);
19 EXPECT_EQ(1U, verifier_forms.size()); 20 EXPECT_EQ(1U, verifier_forms.size());
20 21
21 AddLogin(GetPasswordStore(0), form); 22 AddLogin(GetPasswordStore(0), form);
22 ASSERT_TRUE(GetClient(0)->AwaitSyncCycleCompletion("Added a login.")); 23 ASSERT_TRUE(GetClient(0)->AwaitSyncCycleCompletion("Added a login."));
23 24
24 std::vector<PasswordForm> forms0; 25 std::vector<PasswordForm> forms0;
25 GetLogins(GetPasswordStore(0), forms0); 26 GetLogins(GetPasswordStore(0), forms0);
26 ASSERT_TRUE(ContainsSamePasswordForms(verifier_forms, forms0)); 27 ASSERT_TRUE(ContainsSamePasswordForms(verifier_forms, forms0));
27 } 28 }
OLDNEW
« no previous file with comments | « no previous file | chrome/test/live_sync/two_client_live_bookmarks_sync_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698