OLD | NEW |
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 "chrome/browser/renderer_host/browser_render_process_host.h" | 5 #include "chrome/browser/renderer_host/browser_render_process_host.h" |
6 #include "chrome/browser/renderer_host/render_view_host.h" | 6 #include "chrome/browser/renderer_host/render_view_host.h" |
7 #include "chrome/browser/tab_contents/navigation_entry.h" | 7 #include "chrome/browser/tab_contents/navigation_entry.h" |
8 #include "chrome/browser/tab_contents/web_contents.h" | 8 #include "chrome/browser/tab_contents/web_contents.h" |
9 #include "chrome/common/render_messages.h" | 9 #include "chrome/common/render_messages.h" |
10 #include "chrome/common/url_constants.h" | |
11 #include "chrome/test/testing_profile.h" | 10 #include "chrome/test/testing_profile.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
13 | 12 |
14 namespace { | 13 namespace { |
15 | 14 |
16 class SiteInstanceTest : public testing::Test { | 15 class SiteInstanceTest : public testing::Test { |
17 private: | 16 private: |
18 MessageLoopForUI message_loop_; | 17 MessageLoopForUI message_loop_; |
19 }; | 18 }; |
20 | 19 |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 | 389 |
391 // Should be able to see that we don't have SiteInstances. | 390 // Should be able to see that we don't have SiteInstances. |
392 EXPECT_FALSE(browsing_instance->HasSiteInstance( | 391 EXPECT_FALSE(browsing_instance->HasSiteInstance( |
393 GURL("https://www.google.com"))); // not visited before | 392 GURL("https://www.google.com"))); // not visited before |
394 EXPECT_FALSE(browsing_instance3->HasSiteInstance( | 393 EXPECT_FALSE(browsing_instance3->HasSiteInstance( |
395 GURL("http://www.yahoo.com"))); // different BI, different profile | 394 GURL("http://www.yahoo.com"))); // different BI, different profile |
396 | 395 |
397 // browsing_instances will be deleted when their SiteInstances are deleted | 396 // browsing_instances will be deleted when their SiteInstances are deleted |
398 } | 397 } |
399 | 398 |
OLD | NEW |