| OLD | NEW |
| 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 <map> | 5 #include <map> |
| 6 #include <string> | 6 #include <string> |
| 7 | 7 |
| 8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
| 12 #include "base/stl_util-inl.h" | 12 #include "base/stl_util.h" |
| 13 #include "base/string_number_conversions.h" | 13 #include "base/string_number_conversions.h" |
| 14 #include "base/string_split.h" | 14 #include "base/string_split.h" |
| 15 #include "base/string_util.h" | 15 #include "base/string_util.h" |
| 16 #include "base/system_monitor/system_monitor.h" | 16 #include "base/system_monitor/system_monitor.h" |
| 17 #include "base/utf_string_conversions.h" | 17 #include "base/utf_string_conversions.h" |
| 18 #include "chrome/browser/defaults.h" | 18 #include "chrome/browser/defaults.h" |
| 19 #include "chrome/browser/extensions/extension_tab_helper.h" | 19 #include "chrome/browser/extensions/extension_tab_helper.h" |
| 20 #include "chrome/browser/profiles/profile.h" | 20 #include "chrome/browser/profiles/profile.h" |
| 21 #include "chrome/browser/profiles/profile_manager.h" | 21 #include "chrome/browser/profiles/profile_manager.h" |
| 22 #include "chrome/browser/tabs/tab_strip_model.h" | 22 #include "chrome/browser/tabs/tab_strip_model.h" |
| (...skipping 2300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2323 ASSERT_EQ(1, observer.GetStateCount()); | 2323 ASSERT_EQ(1, observer.GetStateCount()); |
| 2324 MockTabStripModelObserver::State s( | 2324 MockTabStripModelObserver::State s( |
| 2325 contents2, 1, MockTabStripModelObserver::SELECT); | 2325 contents2, 1, MockTabStripModelObserver::SELECT); |
| 2326 s.src_contents = contents2; | 2326 s.src_contents = contents2; |
| 2327 s.src_index = 1; | 2327 s.src_index = 1; |
| 2328 s.user_gesture = false; | 2328 s.user_gesture = false; |
| 2329 EXPECT_TRUE(observer.StateEquals(0, s)); | 2329 EXPECT_TRUE(observer.StateEquals(0, s)); |
| 2330 strip.RemoveObserver(&observer); | 2330 strip.RemoveObserver(&observer); |
| 2331 strip.CloseAllTabs(); | 2331 strip.CloseAllTabs(); |
| 2332 } | 2332 } |
| OLD | NEW |