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

Unified Diff: ppapi/tests/test_net_address_private.h

Issue 8527017: Pepper: Add tests for the PPB_NetAddress_Private interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: oops Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: ppapi/tests/test_net_address_private.h
diff --git a/ppapi/tests/test_net_address_private.h b/ppapi/tests/test_net_address_private.h
new file mode 100644
index 0000000000000000000000000000000000000000..fbd7dc14579880d3798f472774571eec34573512
--- /dev/null
+++ b/ppapi/tests/test_net_address_private.h
@@ -0,0 +1,29 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef PAPPI_TESTS_TEST_NET_ADDRESS_PRIVATE_H_
+#define PAPPI_TESTS_TEST_NET_ADDRESS_PRIVATE_H_
+
+#include <string>
+
+#include "ppapi/c/private/ppb_net_address_private.h"
yzshen1 2011/11/11 18:55:28 I think this include can be moved into .cc file.
viettrungluu 2011/11/11 19:07:40 Done.
+#include "ppapi/tests/test_case.h"
+
+class TestNetAddressPrivate : public TestCase {
yzshen1 2011/11/11 18:55:28 Please also add the test to ppapi_uitest.cc, so th
viettrungluu 2011/11/11 19:07:40 Done.
+ public:
+ explicit TestNetAddressPrivate(TestingInstance* instance);
+
+ // TestCase implementation.
+ virtual bool Init();
+ virtual void RunTest();
+
+ private:
+ std::string TestAreEqual();
+ std::string TestAreHostsEqual();
+ std::string TestDescribe();
+ std::string TestReplacePort();
+ std::string TestGetAnyAddress();
+};
+
+#endif // PAPPI_TESTS_TEST_NET_ADDRESS_PRIVATE_H_

Powered by Google App Engine
This is Rietveld 408576698