Commit a7015304 authored by Menglu Huang's avatar Menglu Huang Committed by Commit Bot

Re-disable SyncFakeServer tests on simulators and change bug number.

These tests were disabled for simulators for being flaky under multiple
simulators mode. Now the mode is turned off for these tests, they should
be re-enabled again,  but still failing due to issue 821490.

Bug: 814990
Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs
Change-Id: Ie75bfa9ed9ba14552123199ff2d202477ae12457
Reviewed-on: https://chromium-review.googlesource.com/961595
Commit-Queue: Menglu Huang <huangml@chromium.org>
Reviewed-by: default avataredchin <edchin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#543543}
parent a233884e
...@@ -131,9 +131,8 @@ void AssertNumberOfEntitiesWithName(int entity_count, ...@@ -131,9 +131,8 @@ void AssertNumberOfEntitiesWithName(int entity_count,
// Tests that a bookmark added on the client (before Sync is enabled) is // Tests that a bookmark added on the client (before Sync is enabled) is
// uploaded to the Sync server once Sync is turned on. // uploaded to the Sync server once Sync is turned on.
// TODO(crbug.com/814990): Reenable the simulator test. // TODO(crbug.com/821490): Reenable the test.
// TODO(crbug.com/821490): Reenable the device test. - (void)DISABLED_testSyncUploadBookmarkOnFirstSync {
- (void)FLAKY_testSyncUploadBookmarkOnFirstSync {
[self addBookmark:GURL("https://www.foo.com") withTitle:@"foo"]; [self addBookmark:GURL("https://www.foo.com") withTitle:@"foo"];
// Sign in to sync, after a bookmark has been added. // Sign in to sync, after a bookmark has been added.
...@@ -148,9 +147,8 @@ void AssertNumberOfEntitiesWithName(int entity_count, ...@@ -148,9 +147,8 @@ void AssertNumberOfEntitiesWithName(int entity_count,
} }
// Tests that a bookmark added on the client is uploaded to the Sync server. // Tests that a bookmark added on the client is uploaded to the Sync server.
// TODO(crbug.com/814990): Reenable the simulator test. // TODO(crbug.com/821490): Reenable the test.
// TODO(crbug.com/821490): Reenable the device test. - (void)DISABLED_testSyncUploadBookmark {
- (void)FLAKY_testSyncUploadBookmark {
ChromeIdentity* identity = [SigninEarlGreyUtils fakeIdentity1]; ChromeIdentity* identity = [SigninEarlGreyUtils fakeIdentity1];
ios::FakeChromeIdentityService::GetInstanceFromChromeProvider()->AddIdentity( ios::FakeChromeIdentityService::GetInstanceFromChromeProvider()->AddIdentity(
identity); identity);
...@@ -164,9 +162,8 @@ void AssertNumberOfEntitiesWithName(int entity_count, ...@@ -164,9 +162,8 @@ void AssertNumberOfEntitiesWithName(int entity_count,
// Tests that a bookmark injected in the FakeServer is synced down to the // Tests that a bookmark injected in the FakeServer is synced down to the
// client. // client.
// TODO(crbug.com/814990): Reenable the simulator test. // TODO(crbug.com/821490): Reenable the test.
// TODO(crbug.com/821490): Reenable the device test. - (void)DISABLED_testSyncDownloadBookmark {
- (void)FLAKY_testSyncDownloadBookmark {
[[self class] assertBookmarksWithTitle:@"hoo" expectedCount:0]; [[self class] assertBookmarksWithTitle:@"hoo" expectedCount:0];
chrome_test_util::InjectBookmarkOnFakeSyncServer("http://www.hoo.com", "hoo"); chrome_test_util::InjectBookmarkOnFakeSyncServer("http://www.hoo.com", "hoo");
...@@ -268,14 +265,8 @@ void AssertNumberOfEntitiesWithName(int entity_count, ...@@ -268,14 +265,8 @@ void AssertNumberOfEntitiesWithName(int entity_count,
} }
// Tests that autofill profile injected in FakeServer gets synced to client. // Tests that autofill profile injected in FakeServer gets synced to client.
// TODO(crbug.com/821490): Reenable the device test. // TODO(crbug.com/821490): Reenable the test.
#if TARGET_IPHONE_SIMULATOR - (void)DISABLED_testSyncDownloadAutofillProfile {
#define MAYBE_testSyncDownloadAutofillProfile testSyncDownloadAutofillProfile
#else
#define MAYBE_testSyncDownloadAutofillProfile \
FLAKY_testSyncDownloadAutofillProfile
#endif
- (void)MAYBE_testSyncDownloadAutofillProfile {
const std::string kGuid = "2340E83B-5BEE-4560-8F95-5914EF7F539E"; const std::string kGuid = "2340E83B-5BEE-4560-8F95-5914EF7F539E";
const std::string kFullName = "Peter Pan"; const std::string kFullName = "Peter Pan";
GREYAssertFalse(chrome_test_util::IsAutofillProfilePresent(kGuid, kFullName), GREYAssertFalse(chrome_test_util::IsAutofillProfilePresent(kGuid, kFullName),
...@@ -300,9 +291,8 @@ void AssertNumberOfEntitiesWithName(int entity_count, ...@@ -300,9 +291,8 @@ void AssertNumberOfEntitiesWithName(int entity_count,
// Test that update to autofill profile injected in FakeServer gets synced to // Test that update to autofill profile injected in FakeServer gets synced to
// client. // client.
// TODO(crbug.com/814990): Reenable the simulator test. // TODO(crbug.com/821490): Reenable the test.
// TODO(crbug.com/821490): Reenable the device test. - (void)DISABLED_testSyncUpdateAutofillProfile {
- (void)FLAKY_testSyncUpdateAutofillProfile {
const std::string kGuid = "2340E83B-5BEE-4560-8F95-5914EF7F539E"; const std::string kGuid = "2340E83B-5BEE-4560-8F95-5914EF7F539E";
const std::string kFullName = "Peter Pan"; const std::string kFullName = "Peter Pan";
const std::string kUpdatedFullName = "Roger Rabbit"; const std::string kUpdatedFullName = "Roger Rabbit";
...@@ -346,9 +336,8 @@ void AssertNumberOfEntitiesWithName(int entity_count, ...@@ -346,9 +336,8 @@ void AssertNumberOfEntitiesWithName(int entity_count,
// Test that autofill profile deleted from FakeServer gets deleted from client // Test that autofill profile deleted from FakeServer gets deleted from client
// as well. // as well.
// TODO(crbug.com/814990): Reenable the simulator test. // TODO(crbug.com/821490): Reenable the test.
// TODO(crbug.com/821490): Reenable the device test. - (void)DISABLED_testSyncDeleteAutofillProfile {
- (void)FLAKY_testSyncDeleteAutofillProfile {
const std::string kGuid = "2340E83B-5BEE-4560-8F95-5914EF7F539E"; const std::string kGuid = "2340E83B-5BEE-4560-8F95-5914EF7F539E";
const std::string kFullName = "Peter Pan"; const std::string kFullName = "Peter Pan";
GREYAssertFalse(chrome_test_util::IsAutofillProfilePresent(kGuid, kFullName), GREYAssertFalse(chrome_test_util::IsAutofillProfilePresent(kGuid, kFullName),
...@@ -382,9 +371,8 @@ void AssertNumberOfEntitiesWithName(int entity_count, ...@@ -382,9 +371,8 @@ void AssertNumberOfEntitiesWithName(int entity_count,
// Tests that tabs opened on this client are committed to the Sync server and // Tests that tabs opened on this client are committed to the Sync server and
// that the created sessions entities are correct. // that the created sessions entities are correct.
// TODO(crbug.com/814990): Reenable the simulator test. // TODO(crbug.com/821490): Reenable the test.
// TODO(crbug.com/821490): Reenable the device test. - (void)DISABLED_testSyncUploadOpenTabs {
- (void)FLAKY_testSyncUploadOpenTabs {
// Create map of canned responses and set up the test HTML server. // Create map of canned responses and set up the test HTML server.
const GURL URL1 = web::test::HttpServer::MakeUrl("http://page1"); const GURL URL1 = web::test::HttpServer::MakeUrl("http://page1");
const GURL URL2 = web::test::HttpServer::MakeUrl("http://page2"); const GURL URL2 = web::test::HttpServer::MakeUrl("http://page2");
...@@ -418,9 +406,8 @@ void AssertNumberOfEntitiesWithName(int entity_count, ...@@ -418,9 +406,8 @@ void AssertNumberOfEntitiesWithName(int entity_count,
// Tests that a typed URL (after Sync is enabled) is uploaded to the Sync // Tests that a typed URL (after Sync is enabled) is uploaded to the Sync
// server. // server.
// TODO(crbug.com/814990): Reenable the simulator test. // TODO(crbug.com/821490): Reenable the test.
// TODO(crbug.com/821490): Reenable the device test. - (void)DISABLED_testSyncTypedURLUpload {
- (void)FLAKY_testSyncTypedURLUpload {
const GURL mockURL("http://not-a-real-site/"); const GURL mockURL("http://not-a-real-site/");
GREYAssertTrue(chrome_test_util::ClearBrowsingHistory(), GREYAssertTrue(chrome_test_util::ClearBrowsingHistory(),
...@@ -459,9 +446,8 @@ void AssertNumberOfEntitiesWithName(int entity_count, ...@@ -459,9 +446,8 @@ void AssertNumberOfEntitiesWithName(int entity_count,
} }
// Tests that typed url is downloaded from sync server. // Tests that typed url is downloaded from sync server.
// TODO(crbug.com/814990): Reenable the simulator test. // TODO(crbug.com/821490): Reenable the test.
// TODO(crbug.com/821490): Reenable the device test. - (void)DISABLED_testSyncTypedUrlDownload {
- (void)FLAKY_testSyncTypedUrlDownload {
const GURL mockURL("http://not-a-real-site/"); const GURL mockURL("http://not-a-real-site/");
GREYAssertTrue(chrome_test_util::ClearBrowsingHistory(), GREYAssertTrue(chrome_test_util::ClearBrowsingHistory(),
...@@ -498,9 +484,8 @@ void AssertNumberOfEntitiesWithName(int entity_count, ...@@ -498,9 +484,8 @@ void AssertNumberOfEntitiesWithName(int entity_count,
// Tests that when typed url is deleted on the client, sync the change gets // Tests that when typed url is deleted on the client, sync the change gets
// propagated to server. // propagated to server.
// TODO(crbug.com/814990): Reenable the simulator test. // TODO(crbug.com/821490): Reenable the test.
// TODO(crbug.com/821490): Reenable the device test. - (void)DISABLED_testSyncTypedURLDeleteFromClient {
- (void)FLAKY_testSyncTypedURLDeleteFromClient {
const GURL mockURL("http://not-a-real-site/"); const GURL mockURL("http://not-a-real-site/");
GREYAssertTrue(chrome_test_util::ClearBrowsingHistory(), GREYAssertTrue(chrome_test_util::ClearBrowsingHistory(),
...@@ -548,9 +533,8 @@ void AssertNumberOfEntitiesWithName(int entity_count, ...@@ -548,9 +533,8 @@ void AssertNumberOfEntitiesWithName(int entity_count,
// Test that typed url is deleted from client after server sends tombstone for // Test that typed url is deleted from client after server sends tombstone for
// that typed url. // that typed url.
// TODO(crbug.com/814990): Reenable the simulator test. // TODO(crbug.com/821490): Reenable the test.
// TODO(crbug.com/821490): Reenable the device test. - (void)DISABLED_testSyncTypedURLDeleteFromServer {
- (void)FLAKY_testSyncTypedURLDeleteFromServer {
const GURL mockURL("http://not-a-real-site/"); const GURL mockURL("http://not-a-real-site/");
GREYAssertTrue(chrome_test_util::ClearBrowsingHistory(), GREYAssertTrue(chrome_test_util::ClearBrowsingHistory(),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment