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

Side by Side Diff: ppapi/tests/test_network_monitor_private.h

Issue 23453025: Refactor PPB_NetworkMonitor_Private interface to use CompletionCallback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 | « ppapi/shared_impl/resource.h ('k') | ppapi/tests/test_network_monitor_private.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) 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 #ifndef PAPPI_TESTS_TEST_NETWORK_MONITOR_PRIVATE_H_ 5 #ifndef PAPPI_TESTS_TEST_NETWORK_MONITOR_PRIVATE_H_
6 #define PAPPI_TESTS_TEST_NETWORK_MONITOR_PRIVATE_H_ 6 #define PAPPI_TESTS_TEST_NETWORK_MONITOR_PRIVATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ppapi/c/pp_stdint.h" 10 #include "ppapi/c/pp_stdint.h"
11 #include "ppapi/tests/test_case.h" 11 #include "ppapi/tests/test_case.h"
12 12
13 namespace pp { 13 namespace pp {
14 class NetworkListPrivate; 14 class NetworkListPrivate;
15 } // namespace pp 15 } // namespace pp
16 16
17 class TestNetworkMonitorPrivate : public TestCase { 17 class TestNetworkMonitorPrivate : public TestCase {
18 public: 18 public:
19 explicit TestNetworkMonitorPrivate(TestingInstance* instance); 19 explicit TestNetworkMonitorPrivate(TestingInstance* instance);
20 20
21 // TestCase implementation. 21 // TestCase implementation.
22 virtual bool Init(); 22 virtual bool Init();
23 virtual void RunTests(const std::string& filter); 23 virtual void RunTests(const std::string& filter);
24 24
25 private: 25 private:
26 std::string TestBasic(); 26 std::string TestBasic();
27 std::string Test2Monitors(); 27 std::string Test2Monitors();
28 std::string TestDeleteInCallback(); 28 std::string TestDeleteInCallback();
29 std::string TestListObserver();
30 29
31 std::string VerifyNetworkListResource(PP_Resource network_resource); 30 std::string VerifyNetworkListResource(PP_Resource network_resource);
32 std::string VerifyNetworkList(const pp::NetworkListPrivate& network_list); 31 std::string VerifyNetworkList(const pp::NetworkListPrivate& network_list);
32
33 }; 33 };
34 34
35 #endif // PAPPI_TESTS_TEST_NETWORK_MONITOR_PRIVATE_H_ 35 #endif // PAPPI_TESTS_TEST_NETWORK_MONITOR_PRIVATE_H_
OLDNEW
« no previous file with comments | « ppapi/shared_impl/resource.h ('k') | ppapi/tests/test_network_monitor_private.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698