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

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

Issue 7616019: Reorganize chrome/test, part #9 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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.h" 5 #include "chrome/browser/automation/chrome_frame_automation_provider.h"
6 #include "chrome/test/testing_browser_process.h" 6 #include "chrome/test/base/testing_browser_process.h"
7 #include "chrome/test/testing_browser_process_test.h" 7 #include "chrome/test/base/testing_browser_process_test.h"
8 #include "content/browser/browser_thread.h" 8 #include "content/browser/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"
11 11
12 class MockChromeFrameAutomationProvider 12 class MockChromeFrameAutomationProvider
13 : public ChromeFrameAutomationProvider { 13 : public ChromeFrameAutomationProvider {
14 public: 14 public:
15 explicit MockChromeFrameAutomationProvider(Profile* profile) 15 explicit MockChromeFrameAutomationProvider(Profile* profile)
16 : ChromeFrameAutomationProvider(profile) {} 16 : ChromeFrameAutomationProvider(profile) {}
17 17
(...skipping 12 matching lines...) Expand all
30 IPC::Message bad_msg(1, -1, IPC::Message::PRIORITY_NORMAL); 30 IPC::Message bad_msg(1, -1, IPC::Message::PRIORITY_NORMAL);
31 31
32 scoped_refptr<MockChromeFrameAutomationProvider> 32 scoped_refptr<MockChromeFrameAutomationProvider>
33 mock(new MockChromeFrameAutomationProvider(NULL)); 33 mock(new MockChromeFrameAutomationProvider(NULL));
34 34
35 EXPECT_CALL(*mock, OnUnhandledMessage(testing::Property(&IPC::Message::type, 35 EXPECT_CALL(*mock, OnUnhandledMessage(testing::Property(&IPC::Message::type,
36 -1))).Times(1); 36 -1))).Times(1);
37 mock->OnMessageReceived(bad_msg); 37 mock->OnMessageReceived(bad_msg);
38 } 38 }
39 39
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698