Google APIs Client Library for C++
googleapis_gtest.h
Go to the documentation of this file.
00001 /*
00002  * \copyright Copyright 2013 Google Inc. All Rights Reserved.
00003  * \license @{
00004  *
00005  * Licensed under the Apache License, Version 2.0 (the "License");
00006  * you may not use this file except in compliance with the License.
00007  * You may obtain a copy of the License at
00008  *
00009  *     http://www.apache.org/licenses/LICENSE-2.0
00010  *
00011  * Unless required by applicable law or agreed to in writing, software
00012  * distributed under the License is distributed on an "AS IS" BASIS,
00013  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  * See the License for the specific language governing permissions and
00015  * limitations under the License.
00016  *
00017  * @}
00018  */
00019 
00020 //
00021 // Convience helpers for GTest.
00022 // These require linking against googleapis_gtest_main instead of gtest_main
00023 
00024 #ifndef APISERVING_CLIENTS_CPP_UTIL_GOOGLEAPIS_GTEST_H_
00025 #define APISERVING_CLIENTS_CPP_UTIL_GOOGLEAPIS_GTEST_H_
00026 
00027 #include "googleapis/strings/strcat.h"
00028 #include <gtest/gtest.h>
00029 namespace googleapis {
00030 
00031 namespace client {
00032 
00033 /*
00034  * Returns the temporary directory created for running the current test.
00035  *
00036  * This function is only avalable when using googleapis_test_main for tests.
00037  */
00038 string GetTestingTempDir();
00039 
00040 }  // namespace client
00041 
00042 } // namespace googleapis
00043 #endif  // APISERVING_CLIENTS_CPP_UTIL_GOOGLEAPIS_GTEST_H_
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines