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

Side by Side Diff: chrome/browser/tabs/tab_strip_model_unittest.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/tabs/tab_strip_model.h" 5 #include "chrome/browser/tabs/tab_strip_model.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 9
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 22 matching lines...) Expand all
33 #include "content/browser/tab_contents/tab_contents.h" 33 #include "content/browser/tab_contents/tab_contents.h"
34 #include "content/common/property_bag.h" 34 #include "content/common/property_bag.h"
35 #include "content/public/browser/notification_details.h" 35 #include "content/public/browser/notification_details.h"
36 #include "content/public/browser/notification_registrar.h" 36 #include "content/public/browser/notification_registrar.h"
37 #include "content/public/browser/notification_source.h" 37 #include "content/public/browser/notification_source.h"
38 #include "content/public/browser/notification_types.h" 38 #include "content/public/browser/notification_types.h"
39 #include "content/test/notification_observer_mock.h" 39 #include "content/test/notification_observer_mock.h"
40 #include "content/test/test_browser_thread.h" 40 #include "content/test/test_browser_thread.h"
41 #include "testing/gtest/include/gtest/gtest.h" 41 #include "testing/gtest/include/gtest/gtest.h"
42 42
43 using content::BrowserThread;
43 using testing::_; 44 using testing::_;
44 45
45 namespace { 46 namespace {
46 47
47 // Class used to delete a TabContents when another TabContents is destroyed. 48 // Class used to delete a TabContents when another TabContents is destroyed.
48 class DeleteTabContentsOnDestroyedObserver 49 class DeleteTabContentsOnDestroyedObserver
49 : public content::NotificationObserver { 50 : public content::NotificationObserver {
50 public: 51 public:
51 DeleteTabContentsOnDestroyedObserver(TabContentsWrapper* source, 52 DeleteTabContentsOnDestroyedObserver(TabContentsWrapper* source,
52 TabContentsWrapper* tab_to_delete) 53 TabContentsWrapper* tab_to_delete)
(...skipping 2321 matching lines...) Expand 10 before | Expand all | Expand 10 after
2374 ASSERT_EQ(1, observer.GetStateCount()); 2375 ASSERT_EQ(1, observer.GetStateCount());
2375 MockTabStripModelObserver::State s( 2376 MockTabStripModelObserver::State s(
2376 contents2, 1, MockTabStripModelObserver::SELECT); 2377 contents2, 1, MockTabStripModelObserver::SELECT);
2377 s.src_contents = contents2; 2378 s.src_contents = contents2;
2378 s.src_index = 1; 2379 s.src_index = 1;
2379 s.user_gesture = false; 2380 s.user_gesture = false;
2380 EXPECT_TRUE(observer.StateEquals(0, s)); 2381 EXPECT_TRUE(observer.StateEquals(0, s));
2381 strip.RemoveObserver(&observer); 2382 strip.RemoveObserver(&observer);
2382 strip.CloseAllTabs(); 2383 strip.CloseAllTabs();
2383 } 2384 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/web_drag_source_win.cc ('k') | chrome/browser/task_manager/task_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698