Commit 9798269f authored by rsimha@chromium.org's avatar rsimha@chromium.org

[sync] Cross platform sync tests to be run on Chrome on iOS buildbots

This patch adds a class of single client sync integration tests whose primary
purpose is to be run on the Chrome on iOS buildbots as part of cross platform
sync integration tests.

All tests in this class are disabled by default so that they don't run as part
of normal chromium buildbot runs. The DISABLED_ annotation will be overridden
when the tests are run on the Chrome on iOS buildbots.

TBR=thakis@chromium.org
BUG=b/6942067
TEST=Run cross platform tests on Chrome on iOS buildbots

Review URL: https://chromiumcodereview.appspot.com/10829227

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150456 0039d316-1c4b-4281-b951-d872f2087c98
parent 7c086875
// Copyright 2012 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 "chrome/browser/profiles/profile.h"
#include "chrome/browser/sync/profile_sync_service_harness.h"
#include "chrome/browser/sync/test/integration/bookmarks_helper.h"
#include "chrome/browser/sync/test/integration/sync_test.h"
using bookmarks_helper::AddURL;
using bookmarks_helper::ModelMatchesVerifier;
// These tests are run on the Chrome on iOS buildbots as part of cross-platform
// sync integration tests, and are not meant to be run on the chromium
// buildbots. As a result, all tests below must have a DISABLED_ annotation,
// which will be overridden when they are run on the Chrome on iOS buildbots.
class CrossPlatformSyncTest : public SyncTest {
public:
CrossPlatformSyncTest() : SyncTest(SINGLE_CLIENT) {}
virtual ~CrossPlatformSyncTest() {}
private:
DISALLOW_COPY_AND_ASSIGN(CrossPlatformSyncTest);
};
IN_PROC_BROWSER_TEST_F(CrossPlatformSyncTest, DISABLED_AddBookmark) {
ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
ASSERT_TRUE(AddURL(0, L"Google", GURL("http://www.google.co.uk")));
ASSERT_TRUE(GetClient(0)->AwaitFullSyncCompletion("Added a bookmark."));
ASSERT_TRUE(ModelMatchesVerifier(0));
}
......@@ -3813,6 +3813,7 @@
'browser/sync/test/integration/autofill_helper.h',
'browser/sync/test/integration/bookmarks_helper.cc',
'browser/sync/test/integration/bookmarks_helper.h',
'browser/sync/test/integration/cross_platform_sync_test.cc',
'browser/sync/test/integration/enable_disable_test.cc',
'browser/sync/test/integration/extension_settings_helper.cc',
'browser/sync/test/integration/extension_settings_helper.h',
......
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