This repository was archived by the owner on Jan 30, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ Adds directory to hold all of the test infra * Migrates window tests out of sommelier-test.cc into sommelier-window-test.cc * Renames sommelier_test.cc -> sommelier-test.cc to match naming conventions BUG=b:255439799 TEST=meson build && ninja -C build && build/sommelier_test && build/sommelier_window_test Change-Id: I2660b6b7683a26f1fdd2f5d52919cc46ccd22a4e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/4383405 Reviewed-by: Chloe Pelling <[email protected]> Tested-by: Justin Huang <[email protected]> Commit-Queue: Chloe Pelling <[email protected]> Auto-Submit: Justin Huang <[email protected]>
- Loading branch information
Justin Huang
authored and
Chromeos LUCI
committed
Apr 13, 2023
1 parent
6e9ecc1
commit 8180f85
Showing
11 changed files
with
703 additions
and
546 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Copyright 2023 The ChromiumOS Authors | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#include <gtest/gtest.h> | ||
|
||
int main(int argc, char** argv) { | ||
testing::InitGoogleTest(&argc, argv); | ||
testing::GTEST_FLAG(throw_on_failure) = true; | ||
// TODO(nverne): set up logging? | ||
return RUN_ALL_TESTS(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Copyright 2023 The ChromiumOS Authors | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#include <ctype.h> | ||
#include <iostream> | ||
#include <memory> | ||
#include <string> | ||
#include <vector> | ||
|
||
#include <gtest/gtest.h> | ||
#include <gmock/gmock.h> | ||
#include <sys/socket.h> | ||
|
||
#include "sommelier.h" // NOLINT(build/include_directory) | ||
#include "sommelier-util.h" // NOLINT(build/include_directory) | ||
#include "testing/wayland-test-base.h" // NOLINT(build/include_directory) | ||
|
||
namespace vm_tools { | ||
namespace sommelier { | ||
|
||
using WaylandTest = WaylandTestBase; | ||
|
||
TEST_F(WaylandTest, CanCommitToEmptySurface) { | ||
wl_surface* surface = wl_compositor_create_surface(ctx.compositor->internal); | ||
wl_surface_commit(surface); | ||
} | ||
|
||
} // namespace sommelier | ||
} // namespace vm_tools |
Oops, something went wrong.