testHelperFunctions2.cxx (87d2adbc) testHelperFunctions2.cxx (faf81e80)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 10 unchanged lines hidden (view full) ---

19 *
20 *************************************************************/
21
22
23
24
25// MARKER(update_precomp.py): autogen include statement, do not remove
26#include "precompiled_sal.hxx"
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 10 unchanged lines hidden (view full) ---

19 *
20 *************************************************************/
21
22
23
24
25// MARKER(update_precomp.py): autogen include statement, do not remove
26#include "precompiled_sal.hxx"
27#include <testshl/simpleheader.hxx>
27#include "gtest/gtest.h"
28#include "stringhelper.hxx"
29
30namespace testOfHelperFunctions
31{
28#include "stringhelper.hxx"
29
30namespace testOfHelperFunctions
31{
32 class test_valueequal : public CppUnit::TestFixture
32 class test_valueequal : public ::testing::Test
33 {
33 {
34 public:
35 void valueequal_001();
36
37 CPPUNIT_TEST_SUITE( test_valueequal );
38 CPPUNIT_TEST( valueequal_001 );
39 CPPUNIT_TEST_SUITE_END( );
40 };
41
34 };
35
42 void test_valueequal::valueequal_001( )
36 TEST_F(test_valueequal, valueequal_001)
43 {
44 rtl::OString sValue;
45 rtl::OUString suValue(rtl::OUString::createFromAscii("This is only a test of some helper functions"));
46 sValue <<= suValue;
37 {
38 rtl::OString sValue;
39 rtl::OUString suValue(rtl::OUString::createFromAscii("This is only a test of some helper functions"));
40 sValue <<= suValue;
47 t_print("'%s'\n", sValue.getStr());
41 printf("'%s'\n", sValue.getStr());
48 }
49
50} // namespace testOfHelperFunctions
42 }
43
44} // namespace testOfHelperFunctions
51
52// -----------------------------------------------------------------------------
53CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( testOfHelperFunctions::test_valueequal, "helperFunctions" );
54
55// -----------------------------------------------------------------------------
56// This is only allowed to be in one file!
57// NOADDITIONAL;