OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #include "base/path_service.h" | 5 #include "base/path_service.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
10 #include "base/logging.h" | |
11 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
12 #include "base/win_util.h" | 11 #include "base/win_util.h" |
13 #endif | 12 #endif |
14 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
15 #include "testing/gtest/include/gtest/gtest-spi.h" | 14 #include "testing/gtest/include/gtest/gtest-spi.h" |
16 #include "testing/platform_test.h" | 15 #include "testing/platform_test.h" |
17 | 16 |
18 namespace { | 17 namespace { |
19 | 18 |
20 // Returns true if PathService::Get returns true and sets the path parameter | 19 // Returns true if PathService::Get returns true and sets the path parameter |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 win_util::GetWinVersion() < win_util::WINVERSION_VISTA) { | 53 win_util::GetWinVersion() < win_util::WINVERSION_VISTA) { |
55 // DIR_LOCAL_APP_DATA_LOW is not supported prior Vista and is expected to | 54 // DIR_LOCAL_APP_DATA_LOW is not supported prior Vista and is expected to |
56 // fail. | 55 // fail. |
57 EXPECT_TRUE(ReturnsInvalidPath(key)) << key; | 56 EXPECT_TRUE(ReturnsInvalidPath(key)) << key; |
58 } else { | 57 } else { |
59 EXPECT_TRUE(ReturnsValidPath(key)) << key; | 58 EXPECT_TRUE(ReturnsValidPath(key)) << key; |
60 } | 59 } |
61 } | 60 } |
62 #endif | 61 #endif |
63 } | 62 } |
OLD | NEW |