Reformat the WebRTC code base
Running clang-format with chromium's style guide. The goal is n-fold: * providing consistency and readability (that's what code guidelines are for) * preventing noise with presubmit checks and git cl format * building on the previous point: making it easier to automatically fix format issues * you name it Please consider using git-hyper-blame to ignore this commit. Bug: webrtc:9340 Change-Id: I694567c4cdf8cee2860958cfe82bfaf25848bb87 Reviewed-on: https://webrtc-review.googlesource.com/81185 Reviewed-by: Patrik Höglund <phoglund@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23660}
This commit is contained in:
@ -28,8 +28,8 @@
|
||||
#if defined(WEBRTC_WIN)
|
||||
#include <windows.h>
|
||||
|
||||
#include "modules/desktop_capture/window_finder_win.h"
|
||||
#include "modules/desktop_capture/win/window_capture_utils.h"
|
||||
#include "modules/desktop_capture/window_finder_win.h"
|
||||
#endif
|
||||
|
||||
namespace webrtc {
|
||||
@ -64,8 +64,8 @@ TEST(WindowFinderTest, FindConsoleWindow) {
|
||||
MoveWindow(console_window, 0, 0, kMaxSize, kMaxSize, true);
|
||||
|
||||
// Brings console window to top.
|
||||
SetWindowPos(
|
||||
console_window, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
|
||||
SetWindowPos(console_window, HWND_TOPMOST, 0, 0, 0, 0,
|
||||
SWP_NOMOVE | SWP_NOSIZE);
|
||||
BringWindowToTop(console_window);
|
||||
|
||||
WindowFinderWin finder;
|
||||
@ -154,14 +154,14 @@ TEST(WindowFinderTest, ShouldReturnNullWindowIfSpotIsOutOfScreen) {
|
||||
return;
|
||||
}
|
||||
|
||||
ASSERT_EQ(kNullWindowId, finder->GetWindowUnderPoint(
|
||||
DesktopVector(INT16_MAX, INT16_MAX)));
|
||||
ASSERT_EQ(kNullWindowId, finder->GetWindowUnderPoint(
|
||||
DesktopVector(INT16_MAX, INT16_MIN)));
|
||||
ASSERT_EQ(kNullWindowId, finder->GetWindowUnderPoint(
|
||||
DesktopVector(INT16_MIN, INT16_MAX)));
|
||||
ASSERT_EQ(kNullWindowId, finder->GetWindowUnderPoint(
|
||||
DesktopVector(INT16_MIN, INT16_MIN)));
|
||||
ASSERT_EQ(kNullWindowId,
|
||||
finder->GetWindowUnderPoint(DesktopVector(INT16_MAX, INT16_MAX)));
|
||||
ASSERT_EQ(kNullWindowId,
|
||||
finder->GetWindowUnderPoint(DesktopVector(INT16_MAX, INT16_MIN)));
|
||||
ASSERT_EQ(kNullWindowId,
|
||||
finder->GetWindowUnderPoint(DesktopVector(INT16_MIN, INT16_MAX)));
|
||||
ASSERT_EQ(kNullWindowId,
|
||||
finder->GetWindowUnderPoint(DesktopVector(INT16_MIN, INT16_MIN)));
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user