OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/memory/ref_counted.h" | 5 #include "base/memory/ref_counted.h" |
6 #include "base/memory/scoped_ptr.h" | 6 #include "base/memory/scoped_ptr.h" |
7 #include "chrome/browser/extensions/api/dns/dns_api.h" | 7 #include "chrome/browser/extensions/api/dns/dns_api.h" |
8 #include "chrome/browser/extensions/api/dns/host_resolver_wrapper.h" | 8 #include "chrome/browser/extensions/api/dns/host_resolver_wrapper.h" |
9 #include "chrome/browser/extensions/api/dns/mock_host_resolver_creator.h" | 9 #include "chrome/browser/extensions/api/dns/mock_host_resolver_creator.h" |
10 #include "chrome/browser/extensions/extension_apitest.h" | 10 #include "chrome/browser/extensions/extension_apitest.h" |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 int resultCode; | 94 int resultCode; |
95 EXPECT_TRUE(value->GetInteger("resultCode", &resultCode)); | 95 EXPECT_TRUE(value->GetInteger("resultCode", &resultCode)); |
96 EXPECT_EQ(net::OK, resultCode); | 96 EXPECT_EQ(net::OK, resultCode); |
97 | 97 |
98 std::string address; | 98 std::string address; |
99 EXPECT_TRUE(value->GetString("address", &address)); | 99 EXPECT_TRUE(value->GetString("address", &address)); |
100 EXPECT_EQ(extensions::MockHostResolverCreator::kAddress, address); | 100 EXPECT_EQ(extensions::MockHostResolverCreator::kAddress, address); |
101 } | 101 } |
102 | 102 |
103 IN_PROC_BROWSER_TEST_F(DnsApiTest, DnsExtension) { | 103 IN_PROC_BROWSER_TEST_F(DnsApiTest, DnsExtension) { |
104 ASSERT_TRUE(RunExtensionTest("dns/api")) << message_; | 104 ASSERT_TRUE(RunPlatformAppTest("dns/api")) << message_; |
105 } | 105 } |
OLD | NEW |