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

Side by Side Diff: src/platform/update_engine/generate_delta_main.cc

Issue 465067: Missed new files in last commit
Patch Set: Created 11 years 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include <sys/types.h>
6 #include <sys/stat.h>
7 #include <dirent.h>
8 #include <fcntl.h>
9 #include <stdlib.h>
10 #include <stdio.h>
11 #include <unistd.h>
12
13 #include <algorithm>
14 #include <string>
15 #include <vector>
16 #include <tr1/memory>
17
18 #include <glib.h>
19
20 #include "chromeos/obsolete_logging.h"
21 #include "update_engine/subprocess.h"
22 #include "update_engine/update_metadata.pb.h"
23
24 using std::sort;
25 using std::string;
26 using std::vector;
27 using std::tr1::shared_ptr;
28
29 // This file contains a simple program that takes an old path, a new path,
30 // and an output file as arguments and the path to an output file and
31 // generates a delta that can be sent to Chrome OS clients.
32
33 namespace chromeos_update_engine {
34
35 int main(int argc, char** argv) {
36 g_thread_init(NULL);
37 Subprocess::Init();
38 if (argc != 4) {
39 usage(argv[0]);
40 }
41 const char* old_dir = argv[1];
42 const char* new_dir = argv[2];
43 if ((!IsDir(old_dir)) || (!IsDir(new_dir))) {
44 usage(argv[0]);
45 }
46 // TODO(adlr): implement using DeltaDiffGenerator
47 return 0;
48 }
OLDNEW
« no previous file with comments | « src/platform/update_engine/filesystem_iterator_unittest.cc ('k') | src/platform/update_engine/gzip.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698