Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1081)

Side by Side Diff: rlz/test/rlz_test_helpers.h

Issue 11308196: [cros] RlzValueStore made protected by a cross-process lock and not persisted over browser lifetime… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « rlz/rlz.gyp ('k') | rlz/test/rlz_test_helpers.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Helper functions used by the tests. 5 // Helper functions used by the tests.
6 6
7 #ifndef RLZ_TEST_RLZ_TEST_HELPERS_H 7 #ifndef RLZ_TEST_RLZ_TEST_HELPERS_H
8 #define RLZ_TEST_RLZ_TEST_HELPERS_H 8 #define RLZ_TEST_RLZ_TEST_HELPERS_H
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 12
13 #if defined(OS_MACOSX) || defined(OS_CHROMEOS) 13 #if defined(OS_POSIX)
14 #include "base/files/scoped_temp_dir.h" 14 #include "base/files/scoped_temp_dir.h"
15 #endif 15 #endif
16 #if defined(OS_CHROMEOS)
17 #include "base/message_loop.h"
18 #include "base/threading/thread.h"
19 #endif
20 16
21 class RlzLibTestNoMachineState : public ::testing::Test { 17 class RlzLibTestNoMachineState : public ::testing::Test {
22 protected: 18 protected:
23 #if defined(OS_CHROMEOS)
24 RlzLibTestNoMachineState();
25 #endif
26 virtual void SetUp() OVERRIDE; 19 virtual void SetUp() OVERRIDE;
27 virtual void TearDown() OVERRIDE; 20 virtual void TearDown() OVERRIDE;
28 21
29 22
30 #if defined(OS_MACOSX) || defined(OS_CHROMEOS) 23 #if defined(OS_POSIX)
31 base::ScopedTempDir temp_dir_; 24 base::ScopedTempDir temp_dir_;
32 #endif 25 #endif
33 #if defined(OS_CHROMEOS)
34 base::Thread pref_store_io_thread_;
35 MessageLoop message_loop_;
36 #endif
37 }; 26 };
38 27
39 class RlzLibTestBase : public RlzLibTestNoMachineState { 28 class RlzLibTestBase : public RlzLibTestNoMachineState {
40 virtual void SetUp() OVERRIDE; 29 virtual void SetUp() OVERRIDE;
41 }; 30 };
42 31
43 32
44 #endif // RLZ_TEST_RLZ_TEST_HELPERS_H 33 #endif // RLZ_TEST_RLZ_TEST_HELPERS_H
OLDNEW
« no previous file with comments | « rlz/rlz.gyp ('k') | rlz/test/rlz_test_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698