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

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

Issue 15462003: Update references to Blink's Platform API headers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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) 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 #include "base/bind.h" 5 #include "base/bind.h"
6 #include "base/bind_helpers.h" 6 #include "base/bind_helpers.h"
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/files/scoped_temp_dir.h" 8 #include "base/files/scoped_temp_dir.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
(...skipping 10 matching lines...) Expand all
21 #include "chrome/common/chrome_notification_types.h" 21 #include "chrome/common/chrome_notification_types.h"
22 #include "chrome/common/chrome_paths.h" 22 #include "chrome/common/chrome_paths.h"
23 #include "chrome/test/base/browser_with_test_window_test.h" 23 #include "chrome/test/base/browser_with_test_window_test.h"
24 #include "chrome/test/base/testing_profile.h" 24 #include "chrome/test/base/testing_profile.h"
25 #include "components/sessions/serialized_navigation_entry_test_helper.h" 25 #include "components/sessions/serialized_navigation_entry_test_helper.h"
26 #include "content/public/browser/navigation_entry.h" 26 #include "content/public/browser/navigation_entry.h"
27 #include "content/public/browser/notification_observer.h" 27 #include "content/public/browser/notification_observer.h"
28 #include "content/public/browser/notification_registrar.h" 28 #include "content/public/browser/notification_registrar.h"
29 #include "content/public/browser/notification_service.h" 29 #include "content/public/browser/notification_service.h"
30 #include "testing/gtest/include/gtest/gtest.h" 30 #include "testing/gtest/include/gtest/gtest.h"
31 #include "third_party/WebKit/Source/Platform/chromium/public/WebData.h" 31 #include "third_party/WebKit/public/platform/WebData.h"
32 #include "third_party/WebKit/Source/Platform/chromium/public/WebHTTPBody.h" 32 #include "third_party/WebKit/public/platform/WebHTTPBody.h"
33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHistoryItem.h" 33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHistoryItem.h"
34 #include "webkit/glue/glue_serialize.h" 34 #include "webkit/glue/glue_serialize.h"
35 35
36 using content::NavigationEntry; 36 using content::NavigationEntry;
37 using sessions::SerializedNavigationEntry; 37 using sessions::SerializedNavigationEntry;
38 using sessions::SerializedNavigationEntryTestHelper; 38 using sessions::SerializedNavigationEntryTestHelper;
39 39
40 class SessionServiceTest : public BrowserWithTestWindowTest, 40 class SessionServiceTest : public BrowserWithTestWindowTest,
41 public content::NotificationObserver { 41 public content::NotificationObserver {
42 public: 42 public:
(...skipping 949 matching lines...) Expand 10 before | Expand all | Expand 10 after
992 service()->ScheduleCommand( 992 service()->ScheduleCommand(
993 service()->CreateSetActiveWindowCommand(window_id)); 993 service()->CreateSetActiveWindowCommand(window_id));
994 service()->ScheduleCommand( 994 service()->ScheduleCommand(
995 service()->CreateSetActiveWindowCommand(window2_id)); 995 service()->CreateSetActiveWindowCommand(window2_id));
996 996
997 ScopedVector<SessionWindow> windows; 997 ScopedVector<SessionWindow> windows;
998 SessionID::id_type active_window_id = 0; 998 SessionID::id_type active_window_id = 0;
999 ReadWindows(&(windows.get()), &active_window_id); 999 ReadWindows(&(windows.get()), &active_window_id);
1000 EXPECT_EQ(window2_id.id(), active_window_id); 1000 EXPECT_EQ(window2_id.id(), active_window_id);
1001 } 1001 }
OLDNEW
« no previous file with comments | « chrome/browser/geolocation/chrome_geolocation_permission_context.cc ('k') | chrome/browser/sessions/session_types_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698