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

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

Issue 107001: Move scoped_vector.h and stl_util-inl.h to base/ (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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_vector.h"
8 #include "base/stl_util-inl.h"
7 #include "base/string_util.h" 9 #include "base/string_util.h"
8 #include "base/time.h" 10 #include "base/time.h"
9 #include "chrome/browser/sessions/session_backend.h" 11 #include "chrome/browser/sessions/session_backend.h"
10 #include "chrome/browser/sessions/session_service.h" 12 #include "chrome/browser/sessions/session_service.h"
11 #include "chrome/browser/sessions/session_service_test_helper.h" 13 #include "chrome/browser/sessions/session_service_test_helper.h"
12 #include "chrome/browser/sessions/session_types.h" 14 #include "chrome/browser/sessions/session_types.h"
13 #include "chrome/browser/tab_contents/navigation_entry.h" 15 #include "chrome/browser/tab_contents/navigation_entry.h"
14 #include "chrome/common/chrome_paths.h" 16 #include "chrome/common/chrome_paths.h"
15 #include "chrome/common/scoped_vector.h"
16 #include "chrome/common/stl_util-inl.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 18
19 class SessionServiceTest : public testing::Test { 19 class SessionServiceTest : public testing::Test {
20 public: 20 public:
21 SessionServiceTest() : window_bounds(0, 1, 2, 3) {} 21 SessionServiceTest() : window_bounds(0, 1, 2, 3) {}
22 22
23 protected: 23 protected:
24 virtual void SetUp() { 24 virtual void SetUp() {
25 std::string b = Int64ToString(base::Time::Now().ToInternalValue()); 25 std::string b = Int64ToString(base::Time::Now().ToInternalValue());
26 26
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 444
445 // Prune the first two navigations from the front. 445 // Prune the first two navigations from the front.
446 helper_.service()->TabNavigationPathPrunedFromFront(window_id, tab_id, 5); 446 helper_.service()->TabNavigationPathPrunedFromFront(window_id, tab_id, 5);
447 447
448 // Read back in. 448 // Read back in.
449 ScopedVector<SessionWindow> windows; 449 ScopedVector<SessionWindow> windows;
450 ReadWindows(&(windows.get())); 450 ReadWindows(&(windows.get()));
451 451
452 ASSERT_EQ(0U, windows->size()); 452 ASSERT_EQ(0U, windows->size());
453 } 453 }
OLDNEW
« no previous file with comments | « chrome/browser/sessions/session_service_test_helper.cc ('k') | chrome/browser/sessions/session_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698