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

Side by Side Diff: chrome/browser/extensions/extension_webui_apitest.cc

Issue 584513003: Move extension_test_message_listener to extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 3 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "base/files/file_path.h" 5 #include "base/files/file_path.h"
6 #include "base/files/file_util.h" 6 #include "base/files/file_util.h"
7 #include "base/path_service.h" 7 #include "base/path_service.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "chrome/browser/extensions/extension_apitest.h" 9 #include "chrome/browser/extensions/extension_apitest.h"
10 #include "chrome/browser/extensions/extension_test_message_listener.h"
11 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
12 #include "chrome/browser/ui/tabs/tab_strip_model.h" 11 #include "chrome/browser/ui/tabs/tab_strip_model.h"
13 #include "chrome/common/chrome_paths.h" 12 #include "chrome/common/chrome_paths.h"
14 #include "chrome/test/base/ui_test_utils.h" 13 #include "chrome/test/base/ui_test_utils.h"
15 #include "content/public/browser/render_frame_host.h" 14 #include "content/public/browser/render_frame_host.h"
16 #include "content/public/browser/web_contents.h" 15 #include "content/public/browser/web_contents.h"
17 #include "content/public/test/browser_test_utils.h" 16 #include "content/public/test/browser_test_utils.h"
18 #include "extensions/browser/event_router.h" 17 #include "extensions/browser/event_router.h"
19 #include "extensions/common/api/test.h" 18 #include "extensions/common/api/test.h"
20 #include "extensions/common/extension.h" 19 #include "extensions/common/extension.h"
21 #include "extensions/common/feature_switch.h" 20 #include "extensions/common/feature_switch.h"
22 #include "extensions/common/switches.h" 21 #include "extensions/common/switches.h"
22 #include "extensions/test/extension_test_message_listener.h"
23 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
24 24
25 namespace extensions { 25 namespace extensions {
26 26
27 namespace OnMessage = core_api::test::OnMessage; 27 namespace OnMessage = core_api::test::OnMessage;
28 28
29 namespace { 29 namespace {
30 30
31 void FindFrame(const GURL& url, 31 void FindFrame(const GURL& url,
32 content::RenderFrameHost** out, 32 content::RenderFrameHost** out,
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 237
238 ASSERT_TRUE(listener->WaitUntilSatisfied()); 238 ASSERT_TRUE(listener->WaitUntilSatisfied());
239 listener->Reply(extension->id()); 239 listener->Reply(extension->id());
240 listener.reset(new ExtensionTestMessageListener("onclose received", false)); 240 listener.reset(new ExtensionTestMessageListener("onclose received", false));
241 ASSERT_TRUE(listener->WaitUntilSatisfied()); 241 ASSERT_TRUE(listener->WaitUntilSatisfied());
242 } 242 }
243 243
244 } // namespace 244 } // namespace
245 245
246 } // namespace extensions 246 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698