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

Side by Side Diff: chrome/browser/automation/chrome_frame_automation_provider_win_unittest.cc

Issue 35643005: Remove unused IPC::Message priority. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « base/pickle.cc ('k') | chrome/browser/spellchecker/spellcheck_message_filter_mac_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/automation/chrome_frame_automation_provider_win.h" 5 #include "chrome/browser/automation/chrome_frame_automation_provider_win.h"
6 #include "chrome/browser/browser_shutdown.h" 6 #include "chrome/browser/browser_shutdown.h"
7 #include "chrome/test/base/testing_browser_process.h" 7 #include "chrome/test/base/testing_browser_process.h"
8 #include "content/public/test/test_browser_thread.h" 8 #include "content/public/test/test_browser_thread.h"
9 #include "testing/gmock/include/gmock/gmock.h" 9 #include "testing/gmock/include/gmock/gmock.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 17 matching lines...) Expand all
28 virtual void TearDown() OVERRIDE { 28 virtual void TearDown() OVERRIDE {
29 // Don't leak state into other tests. 29 // Don't leak state into other tests.
30 browser_shutdown::SetTryingToQuit(false); 30 browser_shutdown::SetTryingToQuit(false);
31 } 31 }
32 }; 32 };
33 33
34 TEST_F(AutomationProviderTest, TestInvalidChromeFrameMessage) { 34 TEST_F(AutomationProviderTest, TestInvalidChromeFrameMessage) {
35 base::MessageLoop message_loop; 35 base::MessageLoop message_loop;
36 content::TestBrowserThread ui_thread(BrowserThread::UI, &message_loop); 36 content::TestBrowserThread ui_thread(BrowserThread::UI, &message_loop);
37 37
38 IPC::Message bad_msg(1, -1, IPC::Message::PRIORITY_NORMAL); 38 IPC::Message bad_msg(1, -1);
39 39
40 scoped_refptr<MockChromeFrameAutomationProvider> 40 scoped_refptr<MockChromeFrameAutomationProvider>
41 mock(new MockChromeFrameAutomationProvider(NULL)); 41 mock(new MockChromeFrameAutomationProvider(NULL));
42 42
43 EXPECT_CALL(*mock, OnUnhandledMessage(testing::Property(&IPC::Message::type, 43 EXPECT_CALL(*mock, OnUnhandledMessage(testing::Property(&IPC::Message::type,
44 -1))).Times(1); 44 -1))).Times(1);
45 mock->OnMessageReceived(bad_msg); 45 mock->OnMessageReceived(bad_msg);
46 } 46 }
OLDNEW
« no previous file with comments | « base/pickle.cc ('k') | chrome/browser/spellchecker/spellcheck_message_filter_mac_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698