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

Side by Side Diff: chrome/browser/sessions/session_service_unittest.cc

Issue 557026: Disables pinned tabs until I land apps. I've #ifdef parts that are... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 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 | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/sessions/session_service.cc ('k') | chrome/browser/sessions/tab_restore_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698