diff options
Diffstat (limited to 'chrome/browser/extensions/extension_messages_apitest.cc')
-rwxr-xr-x | chrome/browser/extensions/extension_messages_apitest.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_messages_apitest.cc b/chrome/browser/extensions/extension_messages_apitest.cc new file mode 100755 index 0000000..5b061af --- /dev/null +++ b/chrome/browser/extensions/extension_messages_apitest.cc @@ -0,0 +1,16 @@ +// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "chrome/browser/extensions/extension_apitest.h" + +// Tests that message passing between extensions and content scripts works. +IN_PROC_BROWSER_TEST_F(ExtensionApiTest, MessagingExternal) { + ASSERT_TRUE(LoadExtension( + test_data_dir_.AppendASCII("..").AppendASCII("good") + .AppendASCII("Extensions") + .AppendASCII("bjafgdebaacbbbecmhlhpofkepfkgcpa") + .AppendASCII("1.0"))); + + ASSERT_TRUE(RunExtensionTest("connect_external")) << message_; +} |