~ubuntu-branches/ubuntu/oneiric/mozc/oneiric

« back to all changes in this revision

Viewing changes to testing/base/internal/googletest.cc

  • Committer: Bazaar Package Importer
  • Author(s): Nobuhiro Iwamatsu
  • Date: 2010-07-14 03:26:47 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100714032647-13qjisj6m8cm8jdx
Tags: 0.12.410.102-1
* New upstream release (Closes: #588971).
  - Add mozc-server, mozc-utils-gui and scim-mozc packages.
* Update debian/rules.
  Add --gypdir option to build_mozc.py.
* Update debian/control.
  - Bumped standards-version to 3.9.0.
  - Update description.
* Add mozc icon (Closes: #588972).
* Add patch which revises issue 18.
  ibus_mozc_issue18.patch
* kFreeBSD build support.
  support_kfreebsd.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
 
49
49
namespace mozc {
50
50
namespace {
51
 
string GetTestSrcdir();
52
 
string GetTestTmpdir();
53
 
 
54
 
void InitTestFlags() {
55
 
  FLAGS_test_srcdir = GetTestSrcdir();
56
 
  FLAGS_test_tmpdir = GetTestTmpdir();
57
 
}
58
 
 
59
 
REGISTER_MODULE_INITIALIZER(test_flags, InitTestFlags());
60
51
 
61
52
#ifdef OS_WINDOWS
62
53
string GetProgramPath() {
126
117
#endif  // OS_WINDOWS
127
118
 
128
119
}  // namespace
 
120
 
 
121
void InitTestFlags() {
 
122
  if (FLAGS_test_srcdir.empty()) {
 
123
    FLAGS_test_srcdir = GetTestSrcdir();
 
124
  }
 
125
  if (FLAGS_test_tmpdir.empty()) {
 
126
    FLAGS_test_tmpdir = GetTestTmpdir();
 
127
  }
 
128
}
 
129
 
129
130
}  // namespace mozc