Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(285)

Side by Side Diff: components/browser_watcher/endsession_watcher_window_win_unittest.cc

Issue 1546143002: Switch to standard integer types in components/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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 "components/browser_watcher/endsession_watcher_window_win.h" 5 #include "components/browser_watcher/endsession_watcher_window_win.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <stddef.h>
8 #include <vector> 9 #include <vector>
9 10
10 #include "base/bind.h" 11 #include "base/bind.h"
11 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
12 13
13 namespace browser_watcher { 14 namespace browser_watcher {
14 15
15 namespace { 16 namespace {
16 17
17 class EndSessionWatcherWindowTest : public testing::Test { 18 class EndSessionWatcherWindowTest : public testing::Test {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 EXPECT_EQ(2u, num_callbacks_); 59 EXPECT_EQ(2u, num_callbacks_);
59 EXPECT_EQ(static_cast<UINT>(WM_ENDSESSION), last_message_); 60 EXPECT_EQ(static_cast<UINT>(WM_ENDSESSION), last_message_);
60 EXPECT_EQ(0xCAFE, last_lparam_); 61 EXPECT_EQ(0xCAFE, last_lparam_);
61 62
62 // Verify that other messages don't pass through. 63 // Verify that other messages don't pass through.
63 ::SendMessage(watcher_window.window(), WM_CLOSE, TRUE, 0xCAFE); 64 ::SendMessage(watcher_window.window(), WM_CLOSE, TRUE, 0xCAFE);
64 EXPECT_EQ(2u, num_callbacks_); 65 EXPECT_EQ(2u, num_callbacks_);
65 } 66 }
66 67
67 } // namespace browser_watcher 68 } // namespace browser_watcher
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698