| 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/file_util.h" | 5 #include "base/file_util.h" |
| 6 #include "base/path_service.h" | 6 #include "base/path_service.h" |
| 7 #include "base/scoped_ptr.h" | 7 #include "base/scoped_ptr.h" |
| 8 #include "base/scoped_vector.h" | 8 #include "base/scoped_vector.h" |
| 9 #include "base/stl_util-inl.h" | 9 #include "base/stl_util-inl.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| (...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 546 // Don't set the pinned state and make sure the pinned value is false. | 546 // Don't set the pinned state and make sure the pinned value is false. |
| 547 TEST_F(SessionServiceTest, PinnedDefaultsToFalse) { | 547 TEST_F(SessionServiceTest, PinnedDefaultsToFalse) { |
| 548 EXPECT_FALSE(CreateAndWriteSessionWithOneTab(false, false)); | 548 EXPECT_FALSE(CreateAndWriteSessionWithOneTab(false, false)); |
| 549 } | 549 } |
| 550 | 550 |
| 551 // Explicitly set the pinned state to false and make sure we get back false. | 551 // Explicitly set the pinned state to false and make sure we get back false. |
| 552 TEST_F(SessionServiceTest, PinnedFalseWhenSetToFalse) { | 552 TEST_F(SessionServiceTest, PinnedFalseWhenSetToFalse) { |
| 553 EXPECT_FALSE(CreateAndWriteSessionWithOneTab(false, true)); | 553 EXPECT_FALSE(CreateAndWriteSessionWithOneTab(false, true)); |
| 554 } | 554 } |
| 555 | 555 |
| 556 // Explicitly set the pinned state to false and make sure we get back true. | 556 #if defined(ENABLE_PINNED_TABS) |
| 557 // Explicitly set the pinned state to true and make sure we get back true. |
| 557 TEST_F(SessionServiceTest, PinnedTrue) { | 558 TEST_F(SessionServiceTest, PinnedTrue) { |
| 558 EXPECT_TRUE(CreateAndWriteSessionWithOneTab(true, true)); | 559 EXPECT_TRUE(CreateAndWriteSessionWithOneTab(true, true)); |
| 559 } | 560 } |
| 561 #endif |
| OLD | NEW |