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

Side by Side Diff: rlz/test/rlz_unittest_main.cc

Issue 2317123003: misc files R-U: Change ScopedTempDir::path() to GetPath() (Closed)
Patch Set: Just rebased Created 4 years, 2 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 | « rlz/test/rlz_test_helpers.cc ('k') | sandbox/win/src/address_sanitizer_test.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 // Main entry point for all unit tests. 5 // Main entry point for all unit tests.
6 6
7 #include "base/at_exit.h" 7 #include "base/at_exit.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "rlz/lib/rlz_lib.h" 10 #include "rlz/lib/rlz_lib.h"
(...skipping 15 matching lines...) Expand all
26 26
27 int ret = RUN_ALL_TESTS(); 27 int ret = RUN_ALL_TESTS();
28 if (ret == 0) { 28 if (ret == 0) {
29 // Now re-run all the tests using a supplementary brand code. This brand 29 // Now re-run all the tests using a supplementary brand code. This brand
30 // code will remain in effect for the lifetime of the branding object. 30 // code will remain in effect for the lifetime of the branding object.
31 #if defined(OS_POSIX) 31 #if defined(OS_POSIX)
32 // Set a temporary directory for RLZ here, because SupplementaryBranding 32 // Set a temporary directory for RLZ here, because SupplementaryBranding
33 // creates and owns RlzValueStore object for its lifetime. 33 // creates and owns RlzValueStore object for its lifetime.
34 base::ScopedTempDir temp_dir; 34 base::ScopedTempDir temp_dir;
35 if (temp_dir.CreateUniqueTempDir()) 35 if (temp_dir.CreateUniqueTempDir())
36 rlz_lib::testing::SetRlzStoreDirectory(temp_dir.path()); 36 rlz_lib::testing::SetRlzStoreDirectory(temp_dir.GetPath());
37 #endif 37 #endif
38 rlz_lib::SupplementaryBranding branding("TEST"); 38 rlz_lib::SupplementaryBranding branding("TEST");
39 ret = RUN_ALL_TESTS(); 39 ret = RUN_ALL_TESTS();
40 } 40 }
41 41
42 return ret; 42 return ret;
43 } 43 }
OLDNEW
« no previous file with comments | « rlz/test/rlz_test_helpers.cc ('k') | sandbox/win/src/address_sanitizer_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698