| Index: blimp/engine/app/ui/blimp_screen_unittest.cc
|
| diff --git a/blimp/engine/app/ui/blimp_screen_unittest.cc b/blimp/engine/app/ui/blimp_screen_unittest.cc
|
| index b45420f10924af50ed3c3930176755f46feea0bc..20c029f9c14d85855991c1ff52fcffed1b404867 100644
|
| --- a/blimp/engine/app/ui/blimp_screen_unittest.cc
|
| +++ b/blimp/engine/app/ui/blimp_screen_unittest.cc
|
| @@ -109,6 +109,16 @@ TEST_F(BlimpScreenTest, RemoveObserver) {
|
| EXPECT_EQ(size1, screen_->GetPrimaryDisplay().GetSizeInPixel());
|
| }
|
|
|
| +TEST_F(BlimpScreenTest, GetDisplayById) {
|
| + // display_ in BlimpScreen has id 1
|
| + display::Display display;
|
| + bool has_display1 = screen_->GetDisplayWithDisplayId(0, &display);
|
| + EXPECT_FALSE(has_display1);
|
| + bool has_display2 = screen_->GetDisplayWithDisplayId(1, &display);
|
| + EXPECT_TRUE(has_display2);
|
| + EXPECT_EQ(1, display.id());
|
| +}
|
| +
|
| } // namespace
|
| } // namespace engine
|
| } // namespace blimp
|
|
|