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

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

Issue 1226353004: Generate all extension schema namespaces as "api" and instead vary the generated bundle names. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 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/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
11 #include "chrome/browser/ui/tabs/tab_strip_model.h" 11 #include "chrome/browser/ui/tabs/tab_strip_model.h"
12 #include "chrome/common/chrome_paths.h" 12 #include "chrome/common/chrome_paths.h"
13 #include "chrome/test/base/ui_test_utils.h" 13 #include "chrome/test/base/ui_test_utils.h"
14 #include "content/public/browser/render_frame_host.h" 14 #include "content/public/browser/render_frame_host.h"
15 #include "content/public/browser/web_contents.h" 15 #include "content/public/browser/web_contents.h"
16 #include "content/public/test/browser_test_utils.h" 16 #include "content/public/test/browser_test_utils.h"
17 #include "extensions/browser/event_router.h" 17 #include "extensions/browser/event_router.h"
18 #include "extensions/common/api/test.h" 18 #include "extensions/common/api/test.h"
19 #include "extensions/common/extension.h" 19 #include "extensions/common/extension.h"
20 #include "extensions/test/extension_test_message_listener.h" 20 #include "extensions/test/extension_test_message_listener.h"
21 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
22 22
23 namespace extensions { 23 namespace extensions {
24 24
25 namespace OnMessage = core_api::test::OnMessage; 25 namespace OnMessage = api::test::OnMessage;
26 26
27 namespace { 27 namespace {
28 28
29 // Tests running extension APIs on WebUI. 29 // Tests running extension APIs on WebUI.
30 class ExtensionWebUITest : public ExtensionApiTest { 30 class ExtensionWebUITest : public ExtensionApiTest {
31 protected: 31 protected:
32 testing::AssertionResult RunTest(const char* name, 32 testing::AssertionResult RunTest(const char* name,
33 const GURL& page_url, 33 const GURL& page_url,
34 const GURL& frame_url, 34 const GURL& frame_url,
35 bool expected_result) { 35 bool expected_result) {
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 238
239 ASSERT_TRUE(listener->WaitUntilSatisfied()); 239 ASSERT_TRUE(listener->WaitUntilSatisfied());
240 listener->Reply(extension_id); 240 listener->Reply(extension_id);
241 listener.reset(new ExtensionTestMessageListener("createfailed", false)); 241 listener.reset(new ExtensionTestMessageListener("createfailed", false));
242 ASSERT_TRUE(listener->WaitUntilSatisfied()); 242 ASSERT_TRUE(listener->WaitUntilSatisfied());
243 } 243 }
244 244
245 } // namespace 245 } // namespace
246 246
247 } // namespace extensions 247 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/display_info_provider_win.cc ('k') | chrome/browser/signin/easy_unlock_app_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698