Chromium Code Reviews| Index: chrome/browser/google/google_update_settings_unittest.cc |
| diff --git a/chrome/browser/google/google_update_settings_unittest.cc b/chrome/browser/google/google_update_settings_unittest.cc |
| index 0896a1647c226b90b7c35ac82371941609cf3a65..f730672c1115e2d43563bb7834cf58e6d6981d85 100644 |
| --- a/chrome/browser/google/google_update_settings_unittest.cc |
| +++ b/chrome/browser/google/google_update_settings_unittest.cc |
| @@ -2,12 +2,29 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| +#include "base/basictypes.h" |
| +#include "base/compiler_specific.h" |
| +#include "base/path_service.h" |
| +#include "base/scoped_temp_dir.h" |
| #include "chrome/browser/google/google_util.h" |
| +#include "chrome/common/chrome_paths.h" |
| #include "chrome/installer/util/google_update_settings.h" |
| #include "testing/gtest/include/gtest/gtest.h" |
| #include "testing/platform_test.h" |
| class GoogleUpdateTest : public PlatformTest { |
| + protected: |
| + GoogleUpdateTest() {} |
|
Lei Zhang
2012/08/31 20:49:48
needs a virtual destructor as well.
Mattias Nissler (ping if slow)
2012/08/31 20:56:18
Done.
|
| + |
| + virtual void SetUp() OVERRIDE { |
| + ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); |
| + PathService::Override(chrome::DIR_USER_DATA, temp_dir_.path()); |
| + } |
| + |
| + ScopedTempDir temp_dir_; |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(GoogleUpdateTest); |
| }; |
| TEST_F(GoogleUpdateTest, StatsConsent) { |