QUIC - cleanup changes to sync chromium tree with internal source.
[chromium-blink-merge.git] / ppapi / tests / test_network_monitor.h
blob13745c87b6539a8b6594288bdcae6eea1d1a39e8
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
3 // found in the LICENSE file.
5 #ifndef PAPPI_TESTS_TEST_NETWORK_MONITOR_H_
6 #define PAPPI_TESTS_TEST_NETWORK_MONITOR_H_
8 #include <string>
10 #include "ppapi/c/pp_stdint.h"
11 #include "ppapi/tests/test_case.h"
13 namespace pp {
14 class NetworkList;
15 } // namespace pp
17 class TestNetworkMonitor : public TestCase {
18 public:
19 explicit TestNetworkMonitor(TestingInstance* instance);
21 // TestCase implementation.
22 virtual bool Init();
23 virtual void RunTests(const std::string& filter);
25 private:
26 std::string TestBasic();
27 std::string Test2Monitors();
28 std::string TestDeleteInCallback();
30 std::string VerifyNetworkListResource(PP_Resource network_resource);
31 std::string VerifyNetworkList(const pp::NetworkList& network_list);
35 #endif // PAPPI_TESTS_TEST_NETWORK_MONITOR_H_