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

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

Issue 3305003: New authorization framework for sync. ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 3 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/offline_sync_test.cc
===================================================================
--- chrome/test/live_sync/offline_sync_test.cc (revision 58702)
+++ chrome/test/live_sync/offline_sync_test.cc (working copy)
@@ -1,29 +0,0 @@
-// Copyright (c) 2010 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/profile.h"
-#include "chrome/common/net/gaia/google_service_auth_error.h"
-#include "chrome/test/live_sync/live_sync_test.h"
-#include "chrome/test/live_sync/profile_sync_service_test_harness.h"
-#include "testing/gmock/include/gmock/gmock.h"
-
-class OfflineSyncTest : public LiveSyncTest {
- public:
- OfflineSyncTest() : LiveSyncTest(LiveSyncTest::SINGLE_CLIENT) {}
-
- private:
- DISALLOW_COPY_AND_ASSIGN(OfflineSyncTest);
-};
-
-IN_PROC_BROWSER_TEST_F(OfflineSyncTest, OfflineStart) {
- ASSERT_TRUE(SetupClients()) << "SetupClients() failed.";
- DisableNetwork(GetProfile(0));
-
- EXPECT_FALSE(GetClient(0)->SetupSync());
- EXPECT_EQ(GoogleServiceAuthError::CONNECTION_FAILED,
- GetClient(0)->service()->GetAuthError().state());
-
- EnableNetwork(GetProfile(0));
- EXPECT_TRUE(GetClient(0)->RetryAuthentication());
-}

Powered by Google App Engine
This is Rietveld 408576698