Fix browser launch on the login screen.
[chromium-blink-merge.git] / ppapi / tests / test_var.h
blob62cb62292a2527821f9191286c8cc64bb4db27f1
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 PPAPI_TEST_TEST_VAR_H_
6 #define PPAPI_TEST_TEST_VAR_H_
8 #include <string>
10 #include "ppapi/c/ppb_var.h"
11 #include "ppapi/cpp/var.h"
12 #include "ppapi/tests/test_case.h"
14 class TestVar : public TestCase {
15 public:
16 explicit TestVar(TestingInstance* instance) : TestCase(instance) {}
18 private:
19 // TestCase implementation.
20 virtual bool Init();
21 virtual void RunTests(const std::string& filter);
23 std::string TestBasicString();
24 std::string TestInvalidAndEmpty();
25 std::string TestInvalidUtf8();
26 std::string TestNullInputInUtf8Conversion();
27 std::string TestValidUtf8();
28 std::string TestUtf8WithEmbeddedNulls();
29 std::string TestVarToUtf8ForWrongType();
30 std::string TestHasPropertyAndMethod();
32 // Used by the tests that access the C API directly.
33 const PPB_Var* var_interface_;
36 #endif // PPAPI_TEST_TEST_VAR_H_