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

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

Issue 1212163011: Componentize chrome/browser/rlz (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 5 months 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
« no previous file with comments | « components/rlz/rlz_tracker_win.cc ('k') | no next file » | 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_POSIX) 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 16
17 #if defined(OS_WIN) 17 #if defined(OS_WIN)
18 #include "base/test/test_reg_util_win.h" 18 #include "base/test/test_reg_util_win.h"
19 #endif 19 #endif
20 20
21 // A test helper class that constructs and destructs platform dependent machine 21 // A test helper class that constructs and destructs platform dependent machine
22 // state. It's used by src/chrome/browser/rlz/rlz_unittest.cc and 22 // state. It's used by src/components/rlz/rlz_tracker_unittest.cc and
23 // src/rlz/lib/rlz_lib_test.cc 23 // src/rlz/lib/rlz_lib_test.cc
24 class RlzLibTestNoMachineStateHelper { 24 class RlzLibTestNoMachineStateHelper {
25 public: 25 public:
26 void SetUp(); 26 void SetUp();
27 void TearDown(); 27 void TearDown();
28 28
29 #if defined(OS_POSIX) 29 #if defined(OS_POSIX)
30 base::ScopedTempDir temp_dir_; 30 base::ScopedTempDir temp_dir_;
31 #endif 31 #endif
32 32
(...skipping 11 matching lines...) Expand all
44 }; 44 };
45 45
46 class RlzLibTestBase : public RlzLibTestNoMachineState { 46 class RlzLibTestBase : public RlzLibTestNoMachineState {
47 protected: 47 protected:
48 void SetUp() override; 48 void SetUp() override;
49 49
50 RlzLibTestNoMachineStateHelper m_rlz_test_helper_; 50 RlzLibTestNoMachineStateHelper m_rlz_test_helper_;
51 }; 51 };
52 52
53 #endif // RLZ_TEST_RLZ_TEST_HELPERS_H 53 #endif // RLZ_TEST_RLZ_TEST_HELPERS_H
OLDNEW
« no previous file with comments | « components/rlz/rlz_tracker_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698