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

Side by Side Diff: extensions/browser/api/cast_channel/cast_channel_apitest.cc

Issue 690383002: cast channel error cleanup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed comment and removed extra copy/pasted data Created 6 years, 1 month 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 "chrome/browser/extensions/extension_apitest.h" 8 #include "chrome/browser/extensions/extension_apitest.h"
9 #include "chrome/browser/extensions/extension_function_test_utils.h" 9 #include "chrome/browser/extensions/extension_function_test_utils.h"
10 #include "chrome/browser/extensions/extension_service.h" 10 #include "chrome/browser/extensions/extension_service.h"
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 "SZeGZyeeGRpwCJ/lef0xh6SWJlVMWNTk5+z0U84GQdizJP/CTCeHpIwMobN+kyDajgOyfD" 495 "SZeGZyeeGRpwCJ/lef0xh6SWJlVMWNTk5+z0U84GQdizJP/CTCeHpIwMobN+kyDajgOyfD"
496 "DLhktc6LHmSlFGG6J7B8W67oziS8ZFEdrcT9WSXFrjLVyURHjvidZD5iFtuImI6k9R9OoX" 496 "DLhktc6LHmSlFGG6J7B8W67oziS8ZFEdrcT9WSXFrjLVyURHjvidZD5iFtuImI6k9R9OoX"
497 "LR6SyAwpjdrL+vlHMk3Gol6KQ98YpF0ghHnN3/FFW4ibvIwjmRbp+tUV3h8TRcCOjlXVGp" 497 "LR6SyAwpjdrL+vlHMk3Gol6KQ98YpF0ghHnN3/FFW4ibvIwjmRbp+tUV3h8TRcCOjlXVGp"
498 "bzPtNRRlTqfv7Rxm5YXkZMLmJJMZiTs5+o8FMRMTQZT4hRR3DQ+A/jofViyTGA=="; 498 "bzPtNRRlTqfv7Rxm5YXkZMLmJJMZiTs5+o8FMRMTQZT4hRR3DQ+A/jofViyTGA==";
499 499
500 std::string args = "[\"" + keys + "\", \"" + signature + "\"]"; 500 std::string args = "[\"" + keys + "\", \"" + signature + "\"]";
501 std::string error = utils::RunFunctionAndReturnError( 501 std::string error = utils::RunFunctionAndReturnError(
502 cast_channel_set_authority_keys_function.get(), args, browser()); 502 cast_channel_set_authority_keys_function.get(), args, browser());
503 EXPECT_EQ(error, std::string()); 503 EXPECT_EQ(error, std::string());
504 } 504 }
505
506 // TODO(vadimgo): Win Dbg has a workaround that makes RunExtensionSubtest
507 // always return true without actually running the test. Remove when fixed.
508 #if defined(OS_WIN) && !defined(NDEBUG)
509 #define MAYBE_TestSetAuthorityKeys DISABLED_TestSetAuthorityKeys
510 #else
511 #define MAYBE_TestSetAuthorityKeys TestSetAuthorityKeys
512 #endif
513 // Test loading extension, opening a channel with ConnectInfo, adding a
514 // listener, writing, reading, and closing.
515 IN_PROC_BROWSER_TEST_F(CastChannelAPITest, MAYBE_TestSetAuthorityKeys) {
516 EXPECT_TRUE(
517 RunExtensionSubtest("cast_channel/api", "test_authority_keys.html"));
518 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698