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

Unified Diff: chrome/browser/sync/test/engine/test_directory_setter_upper.h

Issue 9699057: [Sync] Move 'sync' target to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Tim's comments Created 8 years, 9 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_directory_setter_upper.h
diff --git a/chrome/browser/sync/test/engine/test_directory_setter_upper.h b/chrome/browser/sync/test/engine/test_directory_setter_upper.h
deleted file mode 100644
index b47fe895aeb8365cf9c7ebd9f91c1eaf164d8684..0000000000000000000000000000000000000000
--- a/chrome/browser/sync/test/engine/test_directory_setter_upper.h
+++ /dev/null
@@ -1,79 +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.
-//
-// A handy class that takes care of setting up and destroying a
-// syncable::Directory instance for unit tests that require one.
-//
-// The expected usage is to make this a component of your test fixture:
-//
-// class AwesomenessTest : public testing::Test {
-// public:
-// virtual void SetUp() {
-// metadb_.SetUp();
-// }
-// virtual void TearDown() {
-// metadb_.TearDown();
-// }
-// protected:
-// TestDirectorySetterUpper metadb_;
-// };
-//
-// Then, in your tests, get at the directory like so:
-//
-// TEST_F(AwesomenessTest, IsMaximal) {
-// ... now use metadb_.directory() to get at syncable::Entry objects ...
-// }
-//
-
-#ifndef CHROME_BROWSER_SYNC_TEST_ENGINE_TEST_DIRECTORY_SETTER_UPPER_H_
-#define CHROME_BROWSER_SYNC_TEST_ENGINE_TEST_DIRECTORY_SETTER_UPPER_H_
-#pragma once
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "base/memory/scoped_ptr.h"
-#include "base/scoped_temp_dir.h"
-#include "chrome/browser/sync/internal_api/includes/test_unrecoverable_error_handler.h"
-#include "chrome/browser/sync/syncable/syncable.h"
-#include "chrome/browser/sync/test/fake_encryptor.h"
-#include "chrome/browser/sync/test/null_directory_change_delegate.h"
-#include "testing/gmock/include/gmock/gmock.h"
-
-namespace browser_sync {
-
-class TestDirectorySetterUpper {
- public:
- TestDirectorySetterUpper();
- virtual ~TestDirectorySetterUpper();
-
- // Create a Directory instance open it.
- virtual void SetUp();
-
- // Undo everything done by SetUp(): close the directory and delete the
- // backing files. Before closing the directory, this will run the directory
- // invariant checks and perform the SaveChanges action on the directory.
- virtual void TearDown();
-
- syncable::Directory* directory() { return directory_.get(); }
-
- protected:
- syncable::NullDirectoryChangeDelegate delegate_;
- TestUnrecoverableErrorHandler handler_;
-
- private:
- void RunInvariantCheck();
-
- ScopedTempDir temp_dir_;
- FakeEncryptor encryptor_;
- scoped_ptr<syncable::Directory> directory_;
- std::string name_;
-
- DISALLOW_COPY_AND_ASSIGN(TestDirectorySetterUpper);
-};
-
-} // namespace browser_sync
-
-#endif // CHROME_BROWSER_SYNC_TEST_ENGINE_TEST_DIRECTORY_SETTER_UPPER_H_
« no previous file with comments | « chrome/browser/sync/test/engine/syncer_command_test.cc ('k') | chrome/browser/sync/test/engine/test_directory_setter_upper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698