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

Side by Side Diff: net/tools/dnssec_chain_verify/dnssec_chain_verify.cc

Issue 6317016: Change UTF8ToUTF16 to accept const StringPiece&. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 9 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/base/net_util_win.cc ('k') | net/tools/dump_cache/url_to_filename_encoder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <errno.h> 5 #include <errno.h>
6 #include <stdio.h> 6 #include <stdio.h>
7 #include <stdlib.h>
7 8
8 #include "base/at_exit.h" 9 #include "base/at_exit.h"
9 #include "net/base/dns_util.h" 10 #include "net/base/dns_util.h"
10 #include "net/base/dnssec_chain_verifier.h" 11 #include "net/base/dnssec_chain_verifier.h"
11 12
12 static int usage(const char* argv0) { 13 static int usage(const char* argv0) {
13 fprintf(stderr, "Usage: %s [--ignore-timestamps] <target domain> " 14 fprintf(stderr, "Usage: %s [--ignore-timestamps] <target domain> "
14 "<input file>\n", argv0); 15 "<input file>\n", argv0);
15 return 1; 16 return 1;
16 } 17 }
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 } 100 }
100 101
101 if (err != net::DNSSECChainVerifier::OK) { 102 if (err != net::DNSSECChainVerifier::OK) {
102 fprintf(stderr, "Chain error: %s (%d)\n", err_str, (int) err); 103 fprintf(stderr, "Chain error: %s (%d)\n", err_str, (int) err);
103 return 1; 104 return 1;
104 } 105 }
105 106
106 fprintf(stderr, "Chain good: rrtype:%d\n", verifier.rrtype()); 107 fprintf(stderr, "Chain good: rrtype:%d\n", verifier.rrtype());
107 return 0; 108 return 0;
108 } 109 }
OLDNEW
« no previous file with comments | « net/base/net_util_win.cc ('k') | net/tools/dump_cache/url_to_filename_encoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698