cross_platform_sync_test.cc revision effb81e5f8246d0db0270817048dc992db66e9fb
1// Copyright 2012 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5#include "chrome/browser/profiles/profile.h" 6#include "chrome/browser/sync/test/integration/bookmarks_helper.h" 7#include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" 8#include "chrome/browser/sync/test/integration/sync_integration_test_util.h" 9#include "chrome/browser/sync/test/integration/sync_test.h" 10 11using bookmarks_helper::AddURL; 12using bookmarks_helper::ModelMatchesVerifier; 13using sync_integration_test_util::AwaitCommitActivityCompletion; 14 15// These tests are run on the Chrome on iOS buildbots as part of cross-platform 16// sync integration tests, and are not meant to be run on the chromium 17// buildbots. As a result, all tests below must have a DISABLED_ annotation, 18// which will be overridden when they are run on the Chrome on iOS buildbots. 19class CrossPlatformSyncTest : public SyncTest { 20 public: 21 CrossPlatformSyncTest() : SyncTest(SINGLE_CLIENT) {} 22 virtual ~CrossPlatformSyncTest() {} 23 24 private: 25 DISALLOW_COPY_AND_ASSIGN(CrossPlatformSyncTest); 26}; 27 28IN_PROC_BROWSER_TEST_F(CrossPlatformSyncTest, DISABLED_AddBookmark) { 29 ASSERT_TRUE(SetupSync()) << "SetupSync() failed."; 30 ASSERT_TRUE(AddURL(0, L"Google", GURL("http://www.google.co.uk"))); 31 ASSERT_TRUE(AwaitCommitActivityCompletion(GetClient(0)->service())); 32 ASSERT_TRUE(ModelMatchesVerifier(0)); 33} 34