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

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

Issue 9645003: Introduce abstractions to allow embedders to test RenderViewHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head. Created 8 years, 9 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 "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 18 matching lines...) Expand all
29 #include "chrome/common/extensions/extension.h" 29 #include "chrome/common/extensions/extension.h"
30 #include "chrome/common/url_constants.h" 30 #include "chrome/common/url_constants.h"
31 #include "chrome/test/base/chrome_render_view_host_test_harness.h" 31 #include "chrome/test/base/chrome_render_view_host_test_harness.h"
32 #include "chrome/test/base/testing_profile.h" 32 #include "chrome/test/base/testing_profile.h"
33 #include "content/public/browser/navigation_controller.h" 33 #include "content/public/browser/navigation_controller.h"
34 #include "content/public/browser/navigation_entry.h" 34 #include "content/public/browser/navigation_entry.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/public/browser/render_process_host.h"
39 #include "content/public/browser/web_contents.h" 40 #include "content/public/browser/web_contents.h"
40 #include "content/test/notification_observer_mock.h" 41 #include "content/test/notification_observer_mock.h"
41 #include "content/test/test_browser_thread.h" 42 #include "content/test/test_browser_thread.h"
42 #include "testing/gtest/include/gtest/gtest.h" 43 #include "testing/gtest/include/gtest/gtest.h"
43 44
44 using content::BrowserThread; 45 using content::BrowserThread;
45 using content::NavigationController; 46 using content::NavigationController;
46 using content::SiteInstance; 47 using content::SiteInstance;
47 using content::WebContents; 48 using content::WebContents;
48 using testing::_; 49 using testing::_;
(...skipping 2355 matching lines...) Expand 10 before | Expand all | Expand 10 after
2404 ASSERT_EQ(1, observer.GetStateCount()); 2405 ASSERT_EQ(1, observer.GetStateCount());
2405 MockTabStripModelObserver::State s( 2406 MockTabStripModelObserver::State s(
2406 contents2, 1, MockTabStripModelObserver::SELECT); 2407 contents2, 1, MockTabStripModelObserver::SELECT);
2407 s.src_contents = contents2; 2408 s.src_contents = contents2;
2408 s.src_index = 1; 2409 s.src_index = 1;
2409 s.user_gesture = false; 2410 s.user_gesture = false;
2410 EXPECT_TRUE(observer.StateEquals(0, s)); 2411 EXPECT_TRUE(observer.StateEquals(0, s));
2411 strip.RemoveObserver(&observer); 2412 strip.RemoveObserver(&observer);
2412 strip.CloseAllTabs(); 2413 strip.CloseAllTabs();
2413 } 2414 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/thumbnail_generator_unittest.cc ('k') | chrome/browser/translate/translate_manager_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698