| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "blimp/client/core/blimp_contents_impl.h" | 5 #include "blimp/client/core/contents/blimp_contents_impl.h" |
| 6 | 6 |
| 7 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
| 8 #include "blimp/client/core/blimp_contents_impl.h" | 8 #include "blimp/client/core/contents/blimp_contents_impl.h" |
| 9 #include "blimp/client/public/blimp_contents_observer.h" | 9 #include "blimp/client/public/contents/blimp_contents_observer.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 11 | 11 |
| 12 namespace blimp { | 12 namespace blimp { |
| 13 namespace client { | 13 namespace client { |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 const GURL kExampleURL = GURL("https://www.example.com/"); | 16 const GURL kExampleURL = GURL("https://www.example.com/"); |
| 17 const GURL kOtherExampleURL = GURL("https://www.otherexample.com/"); | 17 const GURL kOtherExampleURL = GURL("https://www.otherexample.com/"); |
| 18 | 18 |
| 19 class TestBlimpContentsObserver : public BlimpContentsObserver { | 19 class TestBlimpContentsObserver : public BlimpContentsObserver { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 loop.RunUntilIdle(); | 57 loop.RunUntilIdle(); |
| 58 | 58 |
| 59 EXPECT_EQ(kOtherExampleURL, navigation_controller.GetURL()); | 59 EXPECT_EQ(kOtherExampleURL, navigation_controller.GetURL()); |
| 60 EXPECT_EQ(kExampleURL, observer1.GetLastURL()); | 60 EXPECT_EQ(kExampleURL, observer1.GetLastURL()); |
| 61 EXPECT_EQ(kOtherExampleURL, observer2.GetLastURL()); | 61 EXPECT_EQ(kOtherExampleURL, observer2.GetLastURL()); |
| 62 } | 62 } |
| 63 | 63 |
| 64 } // namespace | 64 } // namespace |
| 65 } // namespace client | 65 } // namespace client |
| 66 } // namespace blimp | 66 } // namespace blimp |
| OLD | NEW |