summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
Diffstat (limited to 'testing')
-rw-r--r--testing/multiprocess_func_list.cc10
-rw-r--r--testing/multiprocess_func_list.h6
-rw-r--r--testing/platform_test.h2
3 files changed, 9 insertions, 9 deletions
diff --git a/testing/multiprocess_func_list.cc b/testing/multiprocess_func_list.cc
index 236edbf..1e19704 100644
--- a/testing/multiprocess_func_list.cc
+++ b/testing/multiprocess_func_list.cc
@@ -9,20 +9,20 @@
// Helper functions to maintain mapping of "test name"->test func.
// The information is accessed via a global map.
namespace multi_process_function_list {
-
+
namespace {
typedef std::map<std::string, ChildFunctionPtr> MultiProcessTestMap;
-
+
// Retrieve a reference to the global 'func name' -> func ptr map.
MultiProcessTestMap &GetMultiprocessFuncMap() {
static MultiProcessTestMap test_name_to_func_ptr_map;
return test_name_to_func_ptr_map;
}
-
+
} // namespace
-AppendMultiProcessTest::AppendMultiProcessTest(std::string test_name,
+AppendMultiProcessTest::AppendMultiProcessTest(std::string test_name,
ChildFunctionPtr func_ptr) {
GetMultiprocessFuncMap()[test_name] = func_ptr;
}
@@ -36,7 +36,7 @@ int InvokeChildProcessTest(std::string test_name) {
return (*func)();
}
}
-
+
return -1;
}
diff --git a/testing/multiprocess_func_list.h b/testing/multiprocess_func_list.h
index 0d53b2b..6ba8495 100644
--- a/testing/multiprocess_func_list.h
+++ b/testing/multiprocess_func_list.h
@@ -11,7 +11,7 @@
// as the main function of a child process in a multi-process test.
// This complements the MultiProcessTest class which provides facilities
// for launching such tests.
-//
+//
// The MULTIPROCESS_TEST_MAIN() macro registers a string -> func_ptr mapping
// by creating a new global instance of the AppendMultiProcessTest() class
// this means that by the time that we reach our main() function the mapping
@@ -32,13 +32,13 @@ namespace multi_process_function_list {
typedef int (*ChildFunctionPtr)();
// Helper class to append a test function to the global mapping.
-// Used by the MULTIPROCESS_TEST_MAIN macro.
+// Used by the MULTIPROCESS_TEST_MAIN macro.
class AppendMultiProcessTest {
public:
AppendMultiProcessTest(std::string test_name, ChildFunctionPtr func_ptr);
};
-// Invoke the main function of a test previously registered with
+// Invoke the main function of a test previously registered with
// MULTIPROCESS_TEST_MAIN()
int InvokeChildProcessTest(std::string test_name);
diff --git a/testing/platform_test.h b/testing/platform_test.h
index 6e5e039..991ad09 100644
--- a/testing/platform_test.h
+++ b/testing/platform_test.h
@@ -20,7 +20,7 @@ class NSAutoreleasePool;
// only implemented on the Mac. To enable this for another platform, just
// adjust the #ifdefs and add a platform_test_<platform>.cc implementation file.
class PlatformTest : public testing::Test {
- protected:
+ protected:
virtual void SetUp();
virtual void TearDown();