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

Unified Diff: chrome/test/live_sync/single_client_typed_urls_sync_test.cc

Issue 7461109: Allow sync integration tests to operate on multiple datatypes: Typed Urls (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR feedback; rebase Created 9 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
Index: chrome/test/live_sync/single_client_typed_urls_sync_test.cc
diff --git a/chrome/test/live_sync/single_client_live_typed_urls_sync_test.cc b/chrome/test/live_sync/single_client_typed_urls_sync_test.cc
similarity index 63%
rename from chrome/test/live_sync/single_client_live_typed_urls_sync_test.cc
rename to chrome/test/live_sync/single_client_typed_urls_sync_test.cc
index e57f65c406f1f02b2268039ebc4c787f3104c9eb..8c64306c781bc48eed3bf01a44a42875cf239fd0 100644
--- a/chrome/test/live_sync/single_client_live_typed_urls_sync_test.cc
+++ b/chrome/test/live_sync/single_client_typed_urls_sync_test.cc
@@ -6,11 +6,25 @@
#include "chrome/browser/history/history_types.h"
#include "chrome/browser/sessions/session_service.h"
#include "chrome/browser/sync/profile_sync_service_harness.h"
-#include "chrome/test/live_sync/live_typed_urls_sync_test.h"
+#include "chrome/test/live_sync/live_sync_test.h"
+#include "chrome/test/live_sync/typed_urls_helper.h"
+
+using typed_urls_helper::AddUrlToHistory;
+using typed_urls_helper::AssertAllProfilesHaveSameURLsAsVerifier;
+using typed_urls_helper::GetTypedUrlsFromClient;
const std::string kSanityHistoryUrl = "http://www.sanity-history.google.com";
-IN_PROC_BROWSER_TEST_F(SingleClientLiveTypedUrlsSyncTest, Sanity) {
+class SingleClientTypedUrlsSyncTest : public LiveSyncTest {
+ public:
+ SingleClientTypedUrlsSyncTest() : LiveSyncTest(SINGLE_CLIENT) {}
+ virtual ~SingleClientTypedUrlsSyncTest() {}
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(SingleClientTypedUrlsSyncTest);
+};
+
+IN_PROC_BROWSER_TEST_F(SingleClientTypedUrlsSyncTest, Sanity) {
ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
std::vector<history::URLRow> urls = GetTypedUrlsFromClient(0);
ASSERT_EQ(0U, urls.size());
« no previous file with comments | « chrome/test/live_sync/single_client_preferences_sync_test.cc ('k') | chrome/test/live_sync/sync_datatype_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698