OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/browser/plugin_loader_posix.h" | 5 #include "content/browser/plugin_loader_posix.h" |
6 | 6 |
7 #include "base/at_exit.h" | 7 #include "base/at_exit.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
12 #include "base/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
13 #include "content/browser/browser_thread_impl.h" | 13 #include "content/browser/browser_thread_impl.h" |
14 #include "testing/gmock/include/gmock/gmock.h" | 14 #include "testing/gmock/include/gmock/gmock.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 #include "webkit/plugins/webplugininfo.h" | 16 #include "webkit/plugins/webplugininfo.h" |
17 | 17 |
18 namespace content { | 18 namespace content { |
19 | 19 |
20 class MockPluginLoaderPosix : public PluginLoaderPosix { | 20 class MockPluginLoaderPosix : public PluginLoaderPosix { |
21 public: | 21 public: |
22 MOCK_METHOD0(LoadPluginsInternal, void(void)); | 22 MOCK_METHOD0(LoadPluginsInternal, void(void)); |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 plugin_loader()->OnProcessCrashed(42); | 370 plugin_loader()->OnProcessCrashed(42); |
371 plugin_loader()->OnProcessCrashed(42); | 371 plugin_loader()->OnProcessCrashed(42); |
372 | 372 |
373 message_loop()->RunUntilIdle(); | 373 message_loop()->RunUntilIdle(); |
374 EXPECT_EQ(1, did_callback); | 374 EXPECT_EQ(1, did_callback); |
375 | 375 |
376 EXPECT_EQ(0u, plugin_loader()->loaded_plugins().size()); | 376 EXPECT_EQ(0u, plugin_loader()->loaded_plugins().size()); |
377 } | 377 } |
378 | 378 |
379 } // namespace content | 379 } // namespace content |
OLD | NEW |