| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "ppapi/tests/test_network_proxy.h" | 5 #include "ppapi/tests/test_network_proxy.h" |
| 6 | 6 |
| 7 #include "ppapi/cpp/dev/network_proxy_dev.h" | |
| 8 #include "ppapi/cpp/instance.h" | 7 #include "ppapi/cpp/instance.h" |
| 8 #include "ppapi/cpp/network_proxy.h" |
| 9 #include "ppapi/cpp/var.h" | 9 #include "ppapi/cpp/var.h" |
| 10 #include "ppapi/tests/testing_instance.h" | 10 #include "ppapi/tests/testing_instance.h" |
| 11 | 11 |
| 12 REGISTER_TEST_CASE(NetworkProxy); | 12 REGISTER_TEST_CASE(NetworkProxy); |
| 13 | 13 |
| 14 TestNetworkProxy::TestNetworkProxy(TestingInstance* instance) | 14 TestNetworkProxy::TestNetworkProxy(TestingInstance* instance) |
| 15 : TestCase(instance) { | 15 : TestCase(instance) { |
| 16 } | 16 } |
| 17 | 17 |
| 18 void TestNetworkProxy::RunTests(const std::string& filter) { | 18 void TestNetworkProxy::RunTests(const std::string& filter) { |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 pp::NetworkProxy::GetProxyForURL(instance_, | 67 pp::NetworkProxy::GetProxyForURL(instance_, |
| 68 pp::Var(42), // non-string Var | 68 pp::Var(42), // non-string Var |
| 69 callback.GetCallback())); | 69 callback.GetCallback())); |
| 70 CHECK_CALLBACK_BEHAVIOR(callback); | 70 CHECK_CALLBACK_BEHAVIOR(callback); |
| 71 ASSERT_EQ(PP_ERROR_BADARGUMENT, callback.result()); | 71 ASSERT_EQ(PP_ERROR_BADARGUMENT, callback.result()); |
| 72 // TODO(dmichael): Add this check below when crbug.com/250046 is fixed. | 72 // TODO(dmichael): Add this check below when crbug.com/250046 is fixed. |
| 73 // ASSERT_TRUE(callback.output().is_undefined()); | 73 // ASSERT_TRUE(callback.output().is_undefined()); |
| 74 | 74 |
| 75 PASS(); | 75 PASS(); |
| 76 } | 76 } |
| OLD | NEW |