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

Side by Side Diff: extensions/browser/api/cast_channel/cast_channel_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/bind.h" 5 #include "base/bind.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/timer/mock_timer.h" 8 #include "base/timer/mock_timer.h"
9 #include "chrome/browser/extensions/extension_apitest.h" 9 #include "chrome/browser/extensions/extension_apitest.h"
10 #include "chrome/browser/extensions/extension_function_test_utils.h" 10 #include "chrome/browser/extensions/extension_function_test_utils.h"
(...skipping 12 matching lines...) Expand all
23 #include "extensions/test/result_catcher.h" 23 #include "extensions/test/result_catcher.h"
24 #include "net/base/completion_callback.h" 24 #include "net/base/completion_callback.h"
25 #include "net/base/net_errors.h" 25 #include "net/base/net_errors.h"
26 #include "net/log/test_net_log.h" 26 #include "net/log/test_net_log.h"
27 #include "testing/gmock/include/gmock/gmock.h" 27 #include "testing/gmock/include/gmock/gmock.h"
28 #include "testing/gmock_mutant.h" 28 #include "testing/gmock_mutant.h"
29 29
30 // TODO(mfoltz): Mock out the ApiResourceManager to resolve threading issues 30 // TODO(mfoltz): Mock out the ApiResourceManager to resolve threading issues
31 // (crbug.com/398242) and simulate unloading of the extension. 31 // (crbug.com/398242) and simulate unloading of the extension.
32 32
33 namespace cast_channel = extensions::core_api::cast_channel; 33 namespace cast_channel = extensions::api::cast_channel;
34 using cast_channel::CastMessage; 34 using cast_channel::CastMessage;
35 using cast_channel::CastSocket; 35 using cast_channel::CastSocket;
36 using cast_channel::CastTransport; 36 using cast_channel::CastTransport;
37 using cast_channel::ChannelAuthType; 37 using cast_channel::ChannelAuthType;
38 using cast_channel::ChannelError; 38 using cast_channel::ChannelError;
39 using cast_channel::CreateIPEndPointForTest; 39 using cast_channel::CreateIPEndPointForTest;
40 using cast_channel::ErrorInfo; 40 using cast_channel::ErrorInfo;
41 using cast_channel::LastErrors; 41 using cast_channel::LastErrors;
42 using cast_channel::Logger; 42 using cast_channel::Logger;
43 using cast_channel::MessageInfo; 43 using cast_channel::MessageInfo;
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 #define MAYBE_TestSetAuthorityKeys DISABLED_TestSetAuthorityKeys 567 #define MAYBE_TestSetAuthorityKeys DISABLED_TestSetAuthorityKeys
568 #else 568 #else
569 #define MAYBE_TestSetAuthorityKeys TestSetAuthorityKeys 569 #define MAYBE_TestSetAuthorityKeys TestSetAuthorityKeys
570 #endif 570 #endif
571 // Test loading extension, opening a channel with ConnectInfo, adding a 571 // Test loading extension, opening a channel with ConnectInfo, adding a
572 // listener, writing, reading, and closing. 572 // listener, writing, reading, and closing.
573 IN_PROC_BROWSER_TEST_F(CastChannelAPITest, MAYBE_TestSetAuthorityKeys) { 573 IN_PROC_BROWSER_TEST_F(CastChannelAPITest, MAYBE_TestSetAuthorityKeys) {
574 EXPECT_TRUE( 574 EXPECT_TRUE(
575 RunExtensionSubtest("cast_channel/api", "test_authority_keys.html")); 575 RunExtensionSubtest("cast_channel/api", "test_authority_keys.html"));
576 } 576 }
OLDNEW
« no previous file with comments | « extensions/browser/api/cast_channel/cast_channel_api_unittest.cc ('k') | extensions/browser/api/cast_channel/cast_framer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698