blob: a27fd1b41f158421f786f3ca627048aece7ab276 [file] [log] [blame]
Alexander Afanasyev68f2a952013-01-08 14:34:16 -08001/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil -*- */
2/*
3 * Copyright (c) 2012 University of California, Los Angeles
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation;
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 *
18 * Author: Alexander Afanasyev <alexander.afanasyev@ucla.edu>
19 * Zhenkai Zhu <zhenkai@cs.ucla.edu>
20 */
21
22#include "object-manager.h"
23
24#include <boost/filesystem.hpp>
25#include <boost/test/unit_test.hpp>
26#include <unistd.h>
27#include <boost/make_shared.hpp>
28#include <iostream>
29
30using namespace Ccnx;
31using namespace std;
32using namespace boost;
33using namespace boost::filesystem;
34
35BOOST_AUTO_TEST_SUITE(ObjectManagerTests)
36
37BOOST_AUTO_TEST_CASE (ObjectManagerTest)
38{
39 path tmpdir = unique_path (temp_directory_path () / "%%%%-%%%%-%%%%-%%%%");
40 create_directories (tmpdir);
41
42 Name deviceName ("/device");
43
44 CcnxWrapperPtr ccnx = make_shared<CcnxWrapper> ();
45 ObjectManager manager (ccnx, deviceName, tmpdir);
46
47
48 remove_all (tmpdir);
49}
50
51
52BOOST_AUTO_TEST_SUITE_END()