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

Unified Diff: chrome/browser/sync/test/integration/cross_platform_sync_test.cc

Issue 10829227: [sync] Cross platform sync tests to be run on Chrome on iOS buildbots (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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 | « no previous file | chrome/chrome_tests.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/test/integration/cross_platform_sync_test.cc
diff --git a/chrome/browser/sync/test/integration/cross_platform_sync_test.cc b/chrome/browser/sync/test/integration/cross_platform_sync_test.cc
new file mode 100644
index 0000000000000000000000000000000000000000..060836672b72c2eca641b4728605c420f5dbc080
--- /dev/null
+++ b/chrome/browser/sync/test/integration/cross_platform_sync_test.cc
@@ -0,0 +1,31 @@
+// 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));
+}
« no previous file with comments | « no previous file | chrome/chrome_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698