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

Side by Side Diff: extensions/browser/api/dns/dns_apitest.cc

Issue 413353003: Move the app_shell_browsertests DNS apitest to chrome/browser/api/dns. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: todo Created 6 years, 4 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 | « no previous file | extensions/shell/app_shell.gyp » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "base/macros.h" 5 #include "base/macros.h"
6 #include "base/memory/ref_counted.h" 6 #include "base/memory/ref_counted.h"
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "extensions/browser/api/dns/dns_api.h" 9 #include "extensions/browser/api/dns/dns_api.h"
10 #include "extensions/browser/api/dns/host_resolver_wrapper.h" 10 #include "extensions/browser/api/dns/host_resolver_wrapper.h"
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 int result_code = 0; 119 int result_code = 0;
120 EXPECT_TRUE(dict->GetInteger("resultCode", &result_code)); 120 EXPECT_TRUE(dict->GetInteger("resultCode", &result_code));
121 EXPECT_EQ(net::OK, result_code); 121 EXPECT_EQ(net::OK, result_code);
122 122
123 std::string address; 123 std::string address;
124 EXPECT_TRUE(dict->GetString("address", &address)); 124 EXPECT_TRUE(dict->GetString("address", &address));
125 EXPECT_EQ(MockHostResolverCreator::kAddress, address); 125 EXPECT_EQ(MockHostResolverCreator::kAddress, address);
126 } 126 }
127 127
128 } // namespace extensions 128 } // namespace extensions
OLDNEW
« no previous file with comments | « no previous file | extensions/shell/app_shell.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698