OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <map> | 5 #include <map> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "base/utf_string_conversions.h" |
9 #include "build/build_config.h" | 10 #include "build/build_config.h" |
10 #include "chrome/common/render_messages.h" | 11 #include "chrome/common/render_messages.h" |
11 #include "chrome/renderer/pepper_devices.h" | 12 #include "chrome/renderer/pepper_devices.h" |
12 #include "chrome/renderer/webplugin_delegate_pepper.h" | 13 #include "chrome/renderer/webplugin_delegate_pepper.h" |
13 #include "chrome/test/render_view_test.h" | 14 #include "chrome/test/render_view_test.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
15 #include "third_party/npapi/bindings/npapi.h" | 16 #include "third_party/npapi/bindings/npapi.h" |
16 #include "third_party/npapi/bindings/npruntime.h" | 17 #include "third_party/npapi/bindings/npruntime.h" |
17 #include "third_party/WebKit/WebKit/chromium/public/WebPlugin.h" | 18 #include "third_party/WebKit/WebKit/chromium/public/WebPlugin.h" |
18 #include "third_party/WebKit/WebKit/chromium/public/WebPluginParams.h" | 19 #include "third_party/WebKit/WebKit/chromium/public/WebPluginParams.h" |
(...skipping 251 matching lines...) Loading... |
270 EXPECT_EQ(NPERR_NO_ERROR, | 271 EXPECT_EQ(NPERR_NO_ERROR, |
271 pepper_plugin()->DeviceAudioInitializeContext(&config, &context)); | 272 pepper_plugin()->DeviceAudioInitializeContext(&config, &context)); |
272 EXPECT_TRUE(render_thread_.sink().GetFirstMessageMatching( | 273 EXPECT_TRUE(render_thread_.sink().GetFirstMessageMatching( |
273 ViewHostMsg_CreateAudioStream::ID)); | 274 ViewHostMsg_CreateAudioStream::ID)); |
274 EXPECT_EQ(NPERR_NO_ERROR, | 275 EXPECT_EQ(NPERR_NO_ERROR, |
275 pepper_plugin()->DeviceAudioDestroyContext(&context)); | 276 pepper_plugin()->DeviceAudioDestroyContext(&context)); |
276 EXPECT_TRUE(render_thread_.sink().GetFirstMessageMatching( | 277 EXPECT_TRUE(render_thread_.sink().GetFirstMessageMatching( |
277 ViewHostMsg_CloseAudioStream::ID)); | 278 ViewHostMsg_CloseAudioStream::ID)); |
278 } | 279 } |
279 | 280 |
OLD | NEW |