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

Unified Diff: chrome/browser/sync/test/engine/test_user_share.cc

Issue 10147003: [Sync] Move 'syncapi_core' and 'sync_unit_tests' targets to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Win update errors Created 8 years, 8 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/browser/sync/test/engine/test_user_share.cc
diff --git a/chrome/browser/sync/test/engine/test_user_share.cc b/chrome/browser/sync/test/engine/test_user_share.cc
deleted file mode 100644
index 630c6c75083dd2c54391abc1398968d741548764..0000000000000000000000000000000000000000
--- a/chrome/browser/sync/test/engine/test_user_share.cc
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright (c) 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/sync/test/engine/test_user_share.h"
-
-#include "base/compiler_specific.h"
-
-namespace browser_sync {
-
-TestUserShare::TestUserShare() {}
-
-TestUserShare::~TestUserShare() {
- if (user_share_.get())
- ADD_FAILURE() << "Should have called TestUserShare::TearDown()";
-}
-
-void TestUserShare::SetUp() {
- user_share_.reset(new sync_api::UserShare());
- dir_maker_.SetUp();
-
- // The pointer is owned by dir_maker_, we should not be storing it in a
- // scoped_ptr. We must be careful to ensure the scoped_ptr never deletes it.
- user_share_->directory.reset(dir_maker_.directory());
-}
-
-void TestUserShare::TearDown() {
- // Ensure the scoped_ptr doesn't delete the memory we don't own.
- ignore_result(user_share_->directory.release());
-
- user_share_.reset();
- dir_maker_.TearDown();
-}
-
-sync_api::UserShare* TestUserShare::user_share() {
- return user_share_.get();
-}
-
-} // namespace browser_sync
« no previous file with comments | « chrome/browser/sync/test/engine/test_user_share.h ('k') | chrome/browser/sync/test/integration/enable_disable_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698