diff options
author | mmentovai <mmentovai@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2006-11-09 17:04:56 +0000 |
---|---|---|
committer | mmentovai <mmentovai@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2006-11-09 17:04:56 +0000 |
commit | 8647dde8cc03ef16b565dccc75574ee5f0d9cf72 (patch) | |
tree | dfe03649d7d6d66297ceacc0d783338c2f3a04eb /src/processor/postfix_evaluator_unittest.cc | |
parent | Suppress handler thread from appearing in MinidumpProcessor's ProcessState (diff) | |
download | breakpad-8647dde8cc03ef16b565dccc75574ee5f0d9cf72.tar.xz |
Limit use of default namespace in tests and utility programs (#71). r=bryner
- main is now the only thing you'll find in the default namespace.
Everything else has been moved into an unnamed namespace.
http://groups.google.com/group/airbag-dev/browse_thread/thread/14130a0284a0307f
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@63 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/processor/postfix_evaluator_unittest.cc')
-rw-r--r-- | src/processor/postfix_evaluator_unittest.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/processor/postfix_evaluator_unittest.cc b/src/processor/postfix_evaluator_unittest.cc index 0362a7ae..9fac632d 100644 --- a/src/processor/postfix_evaluator_unittest.cc +++ b/src/processor/postfix_evaluator_unittest.cc @@ -26,6 +26,9 @@ #include "google_airbag/processor/memory_region.h" +namespace { + + using std::map; using std::string; using google_airbag::MemoryRegion; @@ -84,7 +87,7 @@ struct EvaluateTestSet { }; -bool RunTests() { +static bool RunTests() { // The first test set checks the basic operations and failure modes. PostfixEvaluator<unsigned int>::DictionaryType dictionary_0; const EvaluateTest evaluate_tests_0[] = { @@ -274,6 +277,9 @@ bool RunTests() { } +} // namespace + + int main(int argc, char **argv) { return RunTests() ? 0 : 1; } |